Fixes BR2_PACKAGE_SKIBOOT_EMBED_PAYLOAD and legal-info
Commit '898245e0 skiboot: Change to BR2_PACKAGE_SKIBOOT from
BR2_TARGET_SKIBOOT' broke the configuration to embed the Kernel
as part of Skiboot.
Additionally, commit '2aff5ba6 Build bootloader kernel seperate from skiboot'
incorrectly assumed that BR2_PACKAGE_SKIBOOT_EMBED_PAYLOAD could take the 'n'
value (when it's really just unset when not configured) and introduced a
'linux-rebuild-with-initramfs' dependency that was never exercised (and fails
when building legal-info).
Fixes: 898245e0 skiboot: Change to BR2_PACKAGE_SKIBOOT from BR2_TARGET_SKIBOOT
Fixes: 2aff5ba6 Build bootloader kernel seperate from skiboot
Signed-off-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com>
diff --git a/openpower/package/openpower-pnor/openpower-pnor.mk b/openpower/package/openpower-pnor/openpower-pnor.mk
index 7bee3ab..a114c3c 100644
--- a/openpower/package/openpower-pnor/openpower-pnor.mk
+++ b/openpower/package/openpower-pnor/openpower-pnor.mk
@@ -19,11 +19,9 @@
OPENPOWER_PNOR_DEPENDENCIES += ima-catalog
endif
-ifeq ($(BR2_PACKAGE_SKIBOOT_EMBED_PAYLOAD),n)
+ifneq ($(BR2_PACKAGE_SKIBOOT_EMBED_PAYLOAD),y)
ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
-OPENPOWER_PNOR_DEPENDENCIES += linux-rebuild-with-initramfs
-else
OPENPOWER_PNOR_DEPENDENCIES += linux
endif