Skip to content

Commit 2aff5ba

Browse files
committed
Build bootloader kernel seperate from skiboot
We want the kernel to be placed in it's own BOOTKERNEL partition on the flash. In that case we don't want it linked into the skiboot image, instead it should be incorporated independently in to the PNOR image. This is made the default for Palmetto, Habanero and Firestone configs. Signed-off-by: Joel Stanley <joel@jms.id.au>
1 parent 91aa912 commit 2aff5ba

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

openpower/configs/firestone_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ BR2_OPENPOWER_PNOR_FILENAME="firestone.pnor"
2323

2424
# skiboot requirements
2525
BR2_TARGET_SKIBOOT=y
26-
BR2_TARGET_SKIBOOT_EMBED_PAYLOAD=y
26+
BR2_TARGET_SKIBOOT_EMBED_PAYLOAD=n
2727

2828
# petitboot requirements
2929
BR2_ENABLE_LOCALE_PURGE=y

openpower/configs/habanero_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ BR2_OPENPOWER_PNOR_FILENAME="habanero.pnor"
2323

2424
# skiboot requirements
2525
BR2_TARGET_SKIBOOT=y
26-
BR2_TARGET_SKIBOOT_EMBED_PAYLOAD=y
26+
BR2_TARGET_SKIBOOT_EMBED_PAYLOAD=n
2727

2828
# petitboot requirements
2929
BR2_ENABLE_LOCALE_PURGE=y

openpower/configs/palmetto_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ BR2_OPENPOWER_PNOR_FILENAME="palmetto.pnor"
2323

2424
# skiboot requirements
2525
BR2_TARGET_SKIBOOT=y
26-
BR2_TARGET_SKIBOOT_EMBED_PAYLOAD=y
26+
BR2_TARGET_SKIBOOT_EMBED_PAYLOAD=n
2727

2828
# petitboot requirements
2929
BR2_ENABLE_LOCALE_PURGE=y

openpower/package/openpower-pnor/openpower-pnor.mk

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@
88
# make doesn't care for quotes in the dependencies.
99
XML_PACKAGE=$(subst $\",,$(BR2_OPENPOWER_XML_PACKAGE))
1010

11-
OPENPOWER_PNOR_VERSION ?= 94389f62eabecf00ef129b4184bf4ba2bc9cd193
11+
OPENPOWER_PNOR_VERSION ?= 6523442e4ced0f5866654b715d6debbb8b88d890
1212
OPENPOWER_PNOR_SITE ?= $(call github,open-power,pnor,$(OPENPOWER_PNOR_VERSION))
1313

1414
OPENPOWER_PNOR_LICENSE = Apache-2.0
1515
OPENPOWER_PNOR_DEPENDENCIES = hostboot hostboot-binaries $(XML_PACKAGE) skiboot host-openpower-ffs occ
1616

17+
ifeq ($(BR2_TARGET_SKIBOOT_EMBED_PAYLOAD),n)
18+
19+
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
20+
OPENPOWER_PNOR_DEPENDENCIES += linux26-rebuild-with-initramfs
21+
else
22+
OPENPOWER_PNOR_DEPENDENCIES += linux
23+
endif
24+
25+
endif
26+
1727
OPENPOWER_PNOR_INSTALL_IMAGES = YES
1828
OPENPOWER_PNOR_INSTALL_TARGET = NO
1929

@@ -43,6 +53,7 @@ define OPENPOWER_PNOR_INSTALL_IMAGES_CMDS
4353
-scratch_dir $(OPENPOWER_PNOR_SCRATCH_DIR) \
4454
-outdir $(STAGING_DIR)/pnor/ \
4555
-payload $(BINARIES_DIR)/$(BR2_SKIBOOT_LID_NAME) \
56+
-bootkernel $(BINARIES_DIR)/$(LINUX_IMAGE_NAME) \
4657
-sbe_binary_filename $(BR2_HOSTBOOT_BINARY_SBE_FILENAME) \
4758
-sbec_binary_filename $(BR2_HOSTBOOT_BINARY_SBEC_FILENAME) \
4859
-occ_binary_filename $(OCC_STAGING_DIR)/$(BR2_OCC_BIN_FILENAME) \

0 commit comments

Comments
 (0)