diff mbox

[flasher,2/3] Use O= rather than BUILD_DIR= when building U-Boot

Message ID 1393352927-27595-2-git-send-email-swarren@wwwdotorg.org
State Accepted, archived
Headers show

Commit Message

Stephen Warren Feb. 25, 2014, 6:28 p.m. UTC
From: Stephen Warren <swarren@nvidia.com>

"make O=" works both before and after U-Boot's conversion to Kbuild,
whereas "make BUILD_DIR=" only works before.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/build b/build
index 6142f31e5d5a..f1df6ce9536b 100755
--- a/build
+++ b/build
@@ -159,8 +159,8 @@  def build_uboot_one_board(boardname):
     out_board_dir = gen_out_board_dir(boardname)
     mkdir(out_board_dir)
 
-    run(uboot_dir, 'make BUILD_DIR=' + build_uboot_dir + ' ' + boardname + '_config')
-    run(uboot_dir, 'make BUILD_DIR=' + build_uboot_dir + ' -s ' + makejobs)
+    run(uboot_dir, 'make O=' + build_uboot_dir + ' ' + boardname + '_config')
+    run(uboot_dir, 'make O=' + build_uboot_dir + ' -s ' + makejobs)
 
     import_uboot_one_board(boardname, build_uboot_dir)