diff options
| author | Charles P. Hofer <charles.hofer@ibm.com> | 2017-08-10 14:20:00 -0500 |
|---|---|---|
| committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-16 17:24:07 +1000 |
| commit | 0ca27df286e99728dce5ff6441d598f2fd76fcc2 (patch) | |
| tree | c1e3db1a82cce57cff6c7101bff6b2c780184d29 /openpower/package/libflash | |
| parent | 914283b094833d6dc2c21469997f93c7fde29659 (diff) | |
| download | talos-op-build-0ca27df286e99728dce5ff6441d598f2fd76fcc2.tar.gz talos-op-build-0ca27df286e99728dce5ff6441d598f2fd76fcc2.zip | |
openpower-pnor: build a PNOR squashfs as consumed by OpenBMC
Recently, OpenBMC has started supporting a firmware update mechanism
that requires a specially formatted tarball to be passed to it.
Since we want op-build to produce images that are easily consumable,
this patch makes the openpower-pnor build produce one of these images.
There is currently no documentation of this format, although the code
that produces it from a PNOR is open source.
Signed-off-by: Charles P. Hofer <charles.hofer@ibm.com>
[stewart@linux.vnet.ibm.com: flattened commit history, rewrote commit message]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'openpower/package/libflash')
| -rw-r--r-- | openpower/package/libflash/libflash.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openpower/package/libflash/libflash.mk b/openpower/package/libflash/libflash.mk index d47edf77..a409b46e 100644 --- a/openpower/package/libflash/libflash.mk +++ b/openpower/package/libflash/libflash.mk @@ -5,8 +5,8 @@ ################################################################################ LIBFLASH_VERSION = v5.7-76-g830fc9a0ed0a - LIBFLASH_SITE = $(call github,open-power,skiboot,$(LIBFLASH_VERSION)) + LIBFLASH_INSTALL_STAGING = YES LIBFLASH_INSTALL_TARGET = YES @@ -29,6 +29,10 @@ define LIBFLASH_BUILD_CMDS -C $(@D)/external/pflash) endef +define HOST_LIBFLASH_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D)/external/pflash +endef + define LIBFLASH_INSTALL_STAGING_CMDS PREFIX=$(STAGING_DIR)/usr $(LIBFLASH_MAKE_ENV) -C $(@D)/external/shared \ install @@ -42,4 +46,9 @@ define LIBFLASH_INSTALL_TARGET_CMDS -C $(@D)/external/pflash install) endef +define HOST_LIBFLASH_INSTALL_CMDS + $(INSTALL) $(@D)/external/pflash/pflash $(HOST_DIR)/usr/bin/pflash +endef + $(eval $(generic-package)) +$(eval $(host-generic-package)) |

