Skip to content

Commit 5b7be18

Browse files
committed
Make some u-boot variables configurable
1 parent c6f08a6 commit 5b7be18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -350,17 +350,17 @@ rootfs_clean:
350350

351351
# Note: We're reusing the TARGET variable from the Linux build section
352352

353-
UBOOT_SRC := $(ROOT_DIR)/u-boot
354-
UBOOT_OUT := $(OUT_DIR)/uboot/$(ARCH)
353+
UBOOT_SRC ?= $(ROOT_DIR)/u-boot
354+
UBOOT_OUT ?= $(OUT_DIR)/uboot/$(ARCH)
355355
UBOOT_CONFIG := $(UBOOT_OUT)/.config
356356
UBOOT_BIN := $(UBOOT_OUT)/u-boot.bin
357357

358358
ifeq ($(ARCH),x86_64)
359-
UBOOT_DEFCONFIG=qemu-x86_64_defconfig
359+
UBOOT_DEFCONFIG ?= qemu-x86_64_defconfig
360360
else ifeq ($(ARCH),i386)
361-
UBOOT_DEFCONFIG=qemu-x86_defconfig
361+
UBOOT_DEFCONFIG ?= qemu-x86_defconfig
362362
else ifeq ($(ARCH),arm64)
363-
UBOOT_DEFCONFIG=qemu_arm64_defconfig
363+
UBOOT_DEFCONFIG ?= qemu_arm64_defconfig
364364
endif
365365

366366
UBOOT_MAKE := \

0 commit comments

Comments
 (0)