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 | |
| 13 | LIBFLASH_MAKE_OPTS += CC="$(TARGET_CC)" LD="$(TARGET_LD)" \ |
| 14 | AS="$(TARGET_AS)" AR="$(TARGET_AR)" NM="$(TARGET_NM)" \ |
| 15 | OBJCOPY="$(TARGET_OBJCOPY)" OBJDUMP="$(TARGET_OBJDUMP)" \ |
| 16 | SIZE="$(TARGET_CROSS)size" |
| 17 | |
| 18 | define LIBFLASH_BUILD_CMDS |
| 19 | PREFIX=$(STAGING_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ |
| 20 | $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ |
| 21 | -C $(@D)/external/shared |
| 22 | endef |
| 23 | |
| 24 | define LIBFLASH_INSTALL_STAGING_CMDS |
| 25 | PREFIX=$(STAGING_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ |
| 26 | $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ |
| 27 | -C $(@D)/external/shared install |
| 28 | endef |
| 29 | |
| 30 | define LIBFLASH_INSTALL_TARGET_CMDS |
Sam Mendoza-Jonas | d21bc76 | 2016-02-19 10:37:33 +1100 | [diff] [blame] | 31 | PREFIX=$(TARGET_DIR)/usr SKIBOOT_VERSION=$(LIBFLASH_VERSION) \ |
Sam Mendoza-Jonas | 61bfdf2 | 2016-02-10 10:15:24 +1100 | [diff] [blame] | 32 | $(MAKE1) $(LIBFLASH_MAKE_OPTS) CROSS_COMPILE=$(TARGET_CROSS) \ |
| 33 | -C $(@D)/external/shared install-lib |
| 34 | endef |
| 35 | |
| 36 | $(eval $(generic-package)) |