diff options
author | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-10 10:15:24 +1100 |
---|---|---|
committer | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-10 16:19:02 +1100 |
commit | 61bfdf27ba41a0140d2fb8ca7ca7892fad68eb6d (patch) | |
tree | 9b43d1803213491cb2770124ad9c033904f65e57 /openpower/package/libflash/libflash.mk | |
parent | c64bdfa63da16fe2b5754a6569c538b2e42a1150 (diff) | |
download | talos-op-build-61bfdf27ba41a0140d2fb8ca7ca7892fad68eb6d.tar.gz talos-op-build-61bfdf27ba41a0140d2fb8ca7ca7892fad68eb6d.zip |
openpower: Add libflash package
Add a new 'libflash' package to install the libflash shared library from
Skiboot without the rest of the build depending on a certain Skiboot
version.
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'openpower/package/libflash/libflash.mk')
-rw-r--r-- | openpower/package/libflash/libflash.mk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/openpower/package/libflash/libflash.mk b/openpower/package/libflash/libflash.mk new file mode 100644 index 00000000..5c6e393f --- /dev/null +++ b/openpower/package/libflash/libflash.mk @@ -0,0 +1,36 @@ +################################################################################ +# +# libflash - builds libflash libraries from skiboot source +# +################################################################################ + +LIBFLASH_VERSION = b2649b822ab57ab06f0028d8343320ae6e11cc50 + +LIBFLASH_SITE = $(call github,open-power,skiboot,$(LIBFLASH_VERSION)) +LIBFLASH_INSTALL_STAGING = YES +LIBFLASH_INSTALL_TARGET = YES + +LIBFLASH_MAKE_OPTS += CC="$(TARGET_CC)" LD="$(TARGET_LD)" \ + AS="$(TARGET_AS)" AR="$(TARGET_AR)" NM="$(TARGET_NM)" \ + OBJCOPY="$(TARGET_OBJCOPY)" OBJDUMP="$(TARGET_OBJDUMP)" \ + SIZE="$(TARGET_CROSS)size" + +define LIBFLASH_BUILD_CMDS + PREFIX=$(STAGING_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ + $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ + -C $(@D)/external/shared +endef + +define LIBFLASH_INSTALL_STAGING_CMDS + PREFIX=$(STAGING_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ + $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ + -C $(@D)/external/shared install +endef + +define LIBFLASH_INSTALL_TARGET_CMDS + PREFIX=$(STAGING_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ + $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ + -C $(@D)/external/shared install-lib +endef + +$(eval $(generic-package)) |