payloads/LinuxBoot: move kernel make flags into own variable
Change-Id: I9240043d2c15b68aabe154b289a961d8d48d3e5f Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35392 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
parent
10348399a6
commit
49ca968b0b
|
@ -29,6 +29,8 @@ tarball_dir:=$(project_dir)/tarball
|
||||||
decompress_flag=.done
|
decompress_flag=.done
|
||||||
|
|
||||||
OBJCOPY:=$(LINUXBOOT_CROSS_COMPILE)objcopy
|
OBJCOPY:=$(LINUXBOOT_CROSS_COMPILE)objcopy
|
||||||
|
KERNEL_MAKE_FLAGS = \
|
||||||
|
ARCH=$(ARCH-y)
|
||||||
|
|
||||||
ifeq ($(CONFIG_LINUXBOOT_KERNEL_CUSTOM),y)
|
ifeq ($(CONFIG_LINUXBOOT_KERNEL_CUSTOM),y)
|
||||||
kernel_version:=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION)
|
kernel_version:=$(CONFIG_LINUXBOOT_KERNEL_CUSTOM_VERSION)
|
||||||
|
@ -90,15 +92,15 @@ ifeq ($(CONFIG_LINUXBOOT_KERNEL_CUSTOM_CONFIG),y)
|
||||||
else
|
else
|
||||||
cp $(ARCH-y)/defconfig $(kernel_dir)/.config
|
cp $(ARCH-y)/defconfig $(kernel_dir)/.config
|
||||||
endif
|
endif
|
||||||
$(MAKE) -C $(kernel_dir) olddefconfig ARCH=$(ARCH-y)
|
$(MAKE) -C $(kernel_dir) $(KERNEL_MAKE_FLAGS) olddefconfig
|
||||||
|
|
||||||
build: $(kernel_dir)/.config
|
build: $(kernel_dir)/.config
|
||||||
@echo " MAKE Linux $(kernel_version)"
|
@echo " MAKE Linux $(kernel_version)"
|
||||||
ifeq ($(CONFIG_LINUXBOOT_KERNEL_BZIMAGE),y)
|
ifeq ($(CONFIG_LINUXBOOT_KERNEL_BZIMAGE),y)
|
||||||
$(MAKE) -C $(kernel_dir) CROSS_COMPILE=$(LINUXBOOT_CROSS_COMPILE) ARCH=$(ARCH-y) bzImage
|
$(MAKE) -C $(kernel_dir) $(KERNEL_MAKE_FLAGS) CROSS_COMPILE=$(LINUXBOOT_CROSS_COMPILE) bzImage
|
||||||
else
|
else
|
||||||
ifeq ($(CONFIG_LINUXBOOT_KERNEL_UIMAGE),y)
|
ifeq ($(CONFIG_LINUXBOOT_KERNEL_UIMAGE),y)
|
||||||
$(MAKE) -C $(kernel_dir) CROSS_COMPILE=$(LINUXBOOT_CROSS_COMPILE) ARCH=$(ARCH-y) vmlinux
|
$(MAKE) -C $(kernel_dir) $(KERNEL_MAKE_FLAGS) CROSS_COMPILE=$(LINUXBOOT_CROSS_COMPILE) vmlinux
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue