payloads/LinuxBoot: Fix remaining issues
* Update kernel versions * Fix initrd path handling Change-Id: Ia0641fd0c0db1e47ee4829b73871af662d4a6370 Signed-off-by: Philipp Deppenwiese <zaolin@das-labor.org> Reviewed-on: https://review.coreboot.org/28401 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Hendricks <david.hendricks@gmail.com>
This commit is contained in:
parent
3b5351d044
commit
9569ebeab8
|
@ -50,12 +50,12 @@ choice
|
||||||
default LINUXBOOT_KERNEL_STABLE
|
default LINUXBOOT_KERNEL_STABLE
|
||||||
|
|
||||||
config LINUXBOOT_KERNEL_STABLE
|
config LINUXBOOT_KERNEL_STABLE
|
||||||
bool "4.15.3"
|
bool "4.14.67"
|
||||||
help
|
help
|
||||||
Stable kernel version
|
Stable kernel version
|
||||||
|
|
||||||
config LINUXBOOT_KERNEL_LATEST
|
config LINUXBOOT_KERNEL_LATEST
|
||||||
bool "4.17.11"
|
bool "4.18.5"
|
||||||
help
|
help
|
||||||
Latest kernel version
|
Latest kernel version
|
||||||
|
|
||||||
|
@ -63,8 +63,8 @@ endchoice
|
||||||
|
|
||||||
config LINUXBOOT_KERNEL_VERSION
|
config LINUXBOOT_KERNEL_VERSION
|
||||||
string
|
string
|
||||||
default "4.17.11" if LINUXBOOT_KERNEL_LATEST
|
default "4.18.5" if LINUXBOOT_KERNEL_LATEST
|
||||||
default "4.15.3" if LINUXBOOT_KERNEL_STABLE
|
default "4.14.67" if LINUXBOOT_KERNEL_STABLE
|
||||||
|
|
||||||
config LINUXBOOT_KERNEL_CONFIGFILE
|
config LINUXBOOT_KERNEL_CONFIGFILE
|
||||||
string "Kernel config file"
|
string "Kernel config file"
|
||||||
|
|
|
@ -77,26 +77,26 @@ else ifeq ($(CONFIG_LINUXBOOT_ARCH),arm64)
|
||||||
$(project_dir)/vmlinux.bin: $(kernel_dir)/vmlinux
|
$(project_dir)/vmlinux.bin: $(kernel_dir)/vmlinux
|
||||||
$(OBJCOPY) -O binary $< $@
|
$(OBJCOPY) -O binary $< $@
|
||||||
|
|
||||||
$(project_dir)/target.dtb: $(CONFIG_LINUXBOOT_DTB_FILE)
|
$(project_dir)/target.dtb: $(PWD)/$(CONFIG_LINUXBOOT_DTB_FILE)
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
$(project_dir)/vmlinux.bin.lzma: $(project_dir)/vmlinux.bin
|
$(project_dir)/vmlinux.bin.lzma: $(project_dir)/vmlinux.bin
|
||||||
xz -c -k -f --format=lzma --lzma1=dict=1MiB,lc=3,lp=0,pb=3 $< > $@
|
xz -c -k -f --format=lzma --lzma1=dict=1MiB,lc=3,lp=0,pb=3 $< > $@
|
||||||
|
|
||||||
$(project_dir)/kernel-image: $(project_dir)/vmlinux.bin.lzma $(project_dir)/../arm64/kernel_fdt_lzma.its $(project_dir)/target.dtb $(project_dir)/initramfs.cpio.xz
|
$(project_dir)/kernel-image: $(project_dir)/vmlinux.bin.lzma $(project_dir)/../arm64/kernel_fdt_lzma.its $(project_dir)/target.dtb $(PWD)/$(CONFIG_PAYLOAD_USERSPACE)
|
||||||
cp $(project_dir)/../arm64/kernel_fdt_lzma.its $(project_dir)
|
cp $(project_dir)/../arm64/kernel_fdt_lzma.its $(project_dir)
|
||||||
mkimage -f $(project_dir)/kernel_fdt_lzma.its $@
|
mkimage -f $(project_dir)/kernel_fdt_lzma.its $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_LINUXBOOT_UROOT),y)
|
ifeq ($(CONFIG_LINUXBOOT_UROOT),y)
|
||||||
$(project_dir)/initramfs.cpio.xz:
|
$(PWD)/$(CONFIG_PAYLOAD_USERSPACE):
|
||||||
$(MAKE) -f targets/u-root.mk
|
$(MAKE) -f targets/u-root.mk
|
||||||
else
|
else
|
||||||
$(project_dir)/initramfs.cpio.xz:
|
$(PWD)/$(CONFIG_PAYLOAD_USERSPACE):
|
||||||
echo "Building without u-root support"
|
echo "Building without u-root support"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
payload: $(project_dir)/kernel-image $(project_dir)/initramfs.cpio.xz
|
payload: $(project_dir)/kernel-image $(PWD)/$(CONFIG_PAYLOAD_USERSPACE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
if [ -d "$(kernel_dir)" ]; then rm -rf $(kernel_dir); fi
|
if [ -d "$(kernel_dir)" ]; then rm -rf $(kernel_dir); fi
|
||||||
|
|
|
@ -71,10 +71,10 @@ endif
|
||||||
else
|
else
|
||||||
ifneq ($(CONFIG_LINUXBOOT_UROOT_FILES),)
|
ifneq ($(CONFIG_LINUXBOOT_UROOT_FILES),)
|
||||||
cd $(uroot_dir); GOARCH=$(CONFIG_LINUXBOOT_ARCH) GOPATH=$(go_path_dir) ./u-root \
|
cd $(uroot_dir); GOARCH=$(CONFIG_LINUXBOOT_ARCH) GOPATH=$(go_path_dir) ./u-root \
|
||||||
-build=bb -files $(CONFIG_LINUXBOOT_UROOT_FILES) -o $(project_dir)/initramfs.cpio
|
-build=bb -files $(CONFIG_LINUXBOOT_UROOT_FILES) -o $(project_dir)/initramfs.cpio coreboot-app
|
||||||
else
|
else
|
||||||
cd $(uroot_dir); GOARCH=$(CONFIG_LINUXBOOT_ARCH) GOPATH=$(go_path_dir) ./u-root \
|
cd $(uroot_dir); GOARCH=$(CONFIG_LINUXBOOT_ARCH) GOPATH=$(go_path_dir) ./u-root \
|
||||||
-build=bb -o $(project_dir)/initramfs.cpio
|
-build=bb -o $(project_dir)/initramfs.cpio coreboot-app
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
xz -f --check=crc32 -9 --lzma2=dict=1MiB --threads=$(CPUS) $(project_dir)/initramfs.cpio
|
xz -f --check=crc32 -9 --lzma2=dict=1MiB --threads=$(CPUS) $(project_dir)/initramfs.cpio
|
||||||
|
|
|
@ -274,7 +274,8 @@ linuxboot:
|
||||||
CONFIG_LINUXBOOT_ARCH=$(CONFIG_LINUXBOOT_ARCH) \
|
CONFIG_LINUXBOOT_ARCH=$(CONFIG_LINUXBOOT_ARCH) \
|
||||||
CONFIG_LINUXBOOT_UROOT=$(CONFIG_LINUXBOOT_UROOT) \
|
CONFIG_LINUXBOOT_UROOT=$(CONFIG_LINUXBOOT_UROOT) \
|
||||||
CONFIG_LINUXBOOT_UROOT_FILES=$(CONFIG_LINUXBOOT_UROOT_FILES) \
|
CONFIG_LINUXBOOT_UROOT_FILES=$(CONFIG_LINUXBOOT_UROOT_FILES) \
|
||||||
CONFIG_LINUXBOOT_DTB_FILE=$(CONFIG_LINUXBOOT_DTB_FILE)
|
CONFIG_LINUXBOOT_DTB_FILE=$(CONFIG_LINUXBOOT_DTB_FILE) \
|
||||||
|
CONFIG_PAYLOAD_USERSPACE=$(CONFIG_PAYLOAD_USERSPACE)
|
||||||
|
|
||||||
|
|
||||||
payloads/external/LinuxBoot/linuxboot/kernel-image: linuxboot
|
payloads/external/LinuxBoot/linuxboot/kernel-image: linuxboot
|
||||||
|
|
Loading…
Reference in New Issue