blob: 728a941638ffcf15cc28e70230b59648e11ab875 [file] [log] [blame]
Brian Silvercb565552014-12-11 12:51:36 -06001################################################################################
2#
3# occ
4#
5################################################################################
6
Bill Hoffa3ebdb3a2015-01-16 13:47:38 -06007OCC_VERSION ?= 0a19fa3049ce60d8d9f5905cd05c1018cbdfb253
Brian Silvercb565552014-12-11 12:51:36 -06008OCC_SITE ?= $(call github,open-power,occ,$(OCC_VERSION))
9OCC_LICENSE = Apache-2.0
Patrick Williams01f14c82014-12-11 19:03:42 -060010OCC_DEPENDENCIES = host-binutils host-p8-pore-binutils
Brian Silvercb565552014-12-11 12:51:36 -060011
12OCC_INSTALL_IMAGES = YES
13OCC_INSTALL_TARGET = NO
14
15OCC_STAGING_DIR = $(STAGING_DIR)/occ
16
17define OCC_BUILD_CMDS
18 cd $(@D)/src && \
19 make POREPATH=$(P8_PORE_BINUTILS_BIN)/bin/ OCC_OP_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) all && \
20 make combineImage
21endef
22
23define OCC_INSTALL_IMAGES_CMDS
24 mkdir -p $(STAGING_DIR)/occ
25 cp $(@D)/src/image.bin $(OCC_STAGING_DIR)/$(BR2_OCC_BIN_FILENAME)
26endef
27
28$(eval $(generic-package))