Split P8 and P9 Hostboot and OCC packages
This was causing a couple of issues:
1) increased complexity in build files
2) It breaks the pkg-version patch detection/checksum
3) Failing to apply patches to would silently fail
The split makes this a bit easier and requires less custom code.
We keep the P9 hostboot/occ named hostboot/occ, so that day-to-day,
nobody notices a difference. The only difference you'll notice
is if doing POWER8 hostboot/occ development, as the package name
will be 'hostboot-p8' or 'occ-p8'.
Fixes: https://github.com/open-power/op-build/issues/876
Fixes: https://github.com/open-power/op-build/issues/1194
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
diff --git a/openpower/package/occ/Config.in b/openpower/package/occ/Config.in
index a71f25d..2512e24 100644
--- a/openpower/package/occ/Config.in
+++ b/openpower/package/occ/Config.in
@@ -1,12 +1,15 @@
config BR2_PACKAGE_OCC
- bool "occ"
- default y if (BR2_OPENPOWER_PLATFORM)
+ bool "OCC (POWER9)"
+ default y if (BR2_OPENPOWER_PLATFORM && BR2_OPENPOWER_POWER9)
select BR2_CPP
help
Project to build OCC
+if BR2_PACKAGE_OCC
+
config BR2_OCC_BIN_FILENAME
- string "Name of OCC image file"
+ string "Name of OCC P9 image file"
+ default "occ.bin"
help
String used to define name of the OCC binary image file
@@ -22,3 +25,5 @@
help
String used to define name of the OCC GPUE GPE binary image file
+endif
+