Skip to content

Commit 01131da

Browse files
committed
Make some u-boot variables configurable
1 parent 7bdb8ef commit 01131da

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
@@ -347,17 +347,17 @@ rootfs_clean:
347347

348348
# Note: We're reusing the TARGET variable from the Linux build section
349349

350-
UBOOT_SRC := $(ROOT_DIR)/u-boot
351-
UBOOT_OUT := $(OUT_DIR)/uboot/$(ARCH)
350+
UBOOT_SRC ?= $(ROOT_DIR)/u-boot
351+
UBOOT_OUT ?= $(OUT_DIR)/uboot/$(ARCH)
352352
UBOOT_CONFIG := $(UBOOT_OUT)/.config
353353
UBOOT_BIN := $(UBOOT_OUT)/u-boot.bin
354354

355355
ifeq ($(ARCH),x86_64)
356-
UBOOT_DEFCONFIG=qemu-x86_64_defconfig
356+
UBOOT_DEFCONFIG ?= qemu-x86_64_defconfig
357357
else ifeq ($(ARCH),i386)
358-
UBOOT_DEFCONFIG=qemu-x86_defconfig
358+
UBOOT_DEFCONFIG ?= qemu-x86_defconfig
359359
else ifeq ($(ARCH),arm64)
360-
UBOOT_DEFCONFIG=qemu_arm64_defconfig
360+
UBOOT_DEFCONFIG ?= qemu_arm64_defconfig
361361
endif
362362

363363
UBOOT_MAKE := \

0 commit comments

Comments
 (0)