Sam Mendoza-Jonas | 61bfdf2 | 2016-02-10 10:15:24 +1100 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # libflash - builds libflash libraries from skiboot source |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | LIBFLASH_VERSION = b2649b822ab57ab06f0028d8343320ae6e11cc50 |
| 8 | |
| 9 | LIBFLASH_SITE = $(call github,open-power,skiboot,$(LIBFLASH_VERSION)) |
| 10 | LIBFLASH_INSTALL_STAGING = YES |
| 11 | LIBFLASH_INSTALL_TARGET = YES |
| 12 | |
Stewart Smith | b16ba5b | 2017-01-10 12:55:55 +1100 | [diff] [blame] | 13 | LIBFLASH_LICENSE_FILES = LICENCE |
| 14 | |
Sam Mendoza-Jonas | 61bfdf2 | 2016-02-10 10:15:24 +1100 | [diff] [blame] | 15 | LIBFLASH_MAKE_OPTS += CC="$(TARGET_CC)" LD="$(TARGET_LD)" \ |
| 16 | AS="$(TARGET_AS)" AR="$(TARGET_AR)" NM="$(TARGET_NM)" \ |
| 17 | OBJCOPY="$(TARGET_OBJCOPY)" OBJDUMP="$(TARGET_OBJDUMP)" \ |
| 18 | SIZE="$(TARGET_CROSS)size" |
| 19 | |
| 20 | define LIBFLASH_BUILD_CMDS |
| 21 | PREFIX=$(STAGING_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ |
| 22 | $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ |
| 23 | -C $(@D)/external/shared |
| 24 | endef |
| 25 | |
| 26 | define LIBFLASH_INSTALL_STAGING_CMDS |
| 27 | PREFIX=$(STAGING_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ |
| 28 | $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ |
| 29 | -C $(@D)/external/shared install |
| 30 | endef |
| 31 | |
| 32 | define LIBFLASH_INSTALL_TARGET_CMDS |
Sam Mendoza-Jonas | d21bc76 | 2016-02-19 10:37:33 +1100 | [diff] [blame] | 33 | PREFIX=$(TARGET_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ |
Sam Mendoza-Jonas | 61bfdf2 | 2016-02-10 10:15:24 +1100 | [diff] [blame] | 34 | $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ |
| 35 | -C $(@D)/external/shared install-lib |
| 36 | endef |
| 37 | |
| 38 | $(eval $(generic-package)) |