diff options
author | Philipp Deppenwiese <zaolin@das-labor.org> | 2018-07-30 22:49:33 +0200 |
---|---|---|
committer | Philipp Deppenwiese <zaolin.daisuki@gmail.com> | 2018-07-31 12:46:21 +0000 |
commit | 781693f21102a10b2a8faeff2c796c5c5da3ae22 (patch) | |
tree | 75e5d87946f79fef2f70ffd8de8b79e49ded940d /payloads/external/LinuxBoot/Makefile | |
parent | d945621b5dbe59e6eea153a8f376c42ad3d6664c (diff) | |
download | coreboot-781693f21102a10b2a8faeff2c796c5c5da3ae22.tar.xz |
payload/LinuxBoot: Fix compilation and clean target
* Update kernel version
* Add kernel directory removal during clean target
* Add x86 and x86_64 default configs
Change-Id: I6793bffd2c537a0e9fe7c07abbea99b28defb52e
Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org>
Reviewed-on: https://review.coreboot.org/27745
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/external/LinuxBoot/Makefile')
-rw-r--r-- | payloads/external/LinuxBoot/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/payloads/external/LinuxBoot/Makefile b/payloads/external/LinuxBoot/Makefile index 651e9827b8..f259373257 100644 --- a/payloads/external/LinuxBoot/Makefile +++ b/payloads/external/LinuxBoot/Makefile @@ -21,23 +21,23 @@ unexport MAKEFLAGS XGCCPATH?=$(PWD)/util/crossgcc/xgcc/bin ifeq ($(CONFIG_LINUXBOOT_ARCH),386) -CROSS_COMPILE?=$(XGCCPATH)/i386-linux- +LINUXBOOT_COMPILE?=$(XGCCPATH)/i386-linux- ARCH?=x86 else ifeq ($(CONFIG_LINUXBOOT_ARCH),amd64) -CROSS_COMPILE?=$(XGCCPATH)/x86_64-linux- +LINUXBOOT_COMPILE?=$(XGCCPATH)/x86_64-linux- ARCH?=x86_64 else ifeq ($(CONFIG_LINUXBOOT_ARCH),arm64) -CROSS_COMPILE?=$(XGCCPATH)/aarch64-linux- +LINUXBOOT_COMPILE?=$(XGCCPATH)/aarch64-linux- ARCH?=arm64 endif -OBJCOPY:=$(CROSS_COMPILE)objcopy +OBJCOPY:=$(LINUXBOOT_COMPILE)objcopy all: payload toolchain: - if [[ ! -x "$(CROSS_COMPILE)gcc" ]]; then \ - echo "Toolchain '$(CROSS_COMPILE)*' is missing."; \ + if [[ ! -x "$(LINUXBOOT_COMPILE)gcc" ]]; then \ + echo "Toolchain '$(LINUXBOOT_COMPILE)*' is missing."; \ exit 1; \ fi @@ -67,8 +67,8 @@ else ifeq ($(CONFIG_LINUXBOOT_ARCH),arm64) $(kernel_dir)/vmlinux: config toolchain endif echo " MAKE Kernel $(CONFIG_LINUXBOOT_KERNEL_VERSION)" - $(MAKE) -C $(kernel_dir) olddefconfig CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) - $(MAKE) -C $(kernel_dir) -j $(CPUS) CROSS_COMPILE=$(CROSS_COMPILE) ARCH=$(ARCH) + $(MAKE) -C $(kernel_dir) olddefconfig CROSS_COMPILE=$(LINUXBOOT_COMPILE) ARCH=$(ARCH) + $(MAKE) -C $(kernel_dir) -j $(CPUS) CROSS_COMPILE=$(LINUXBOOT_COMPILE) ARCH=$(ARCH) ifneq (,$(filter $(CONFIG_LINUXBOOT_ARCH),386 amd64)) $(project_dir)/kernel-image: $(kernel_dir)/arch/x86/boot/bzImage @@ -99,7 +99,7 @@ endif payload: $(project_dir)/kernel-image $(project_dir)/initramfs.cpio.xz clean: - if [ -d "$(kernel_dir)" ]; then make -C $(kernel_dir) clean; fi + if [ -d "$(kernel_dir)" ]; then rm -rf $(kernel_dir); fi rm -f $(project_dir)/initramfs.cpio.xz distclean: |