blob: 0ef38a28ce8a76f65f14adafecffa938dd55f26d [file] [log] [blame]
Stewart Smith03671c02017-02-17 14:57:57 +11001################################################################################
2#
3# occ for power8
4#
5################################################################################
6
hostbootd51c0c52019-07-17 02:30:33 -05007OCC_P8_VERSION ?= 28b9f6edc698d19ccb721beaf8de8b786c11f990
Stewart Smith03671c02017-02-17 14:57:57 +11008OCC_P8_SITE ?= $(call github,open-power,occ,$(OCC_P8_VERSION))
9OCC_P8_LICENSE = Apache-2.0
10
11OCC_P8_LICENSE_FILES = src/LICENSE
12
13OCC_P8_INSTALL_IMAGES = YES
14OCC_P8_INSTALL_TARGET = NO
15
16OCC_P8_STAGING_DIR = $(STAGING_DIR)/occ
17
18OCC_P8_IMAGE_BIN_PATH = src/image.bin
19OCC_P8_DEPENDENCIES = host-binutils host-p8-pore-binutils
20
21define OCC_P8_BUILD_CMDS
22 cd $(@D)/src && \
23 make POREPATH=$(P8_PORE_BINUTILS_BIN)/bin/ OCC_OP_BUILD=1 CROSS_PREFIX=$(TARGET_CROSS) all && \
24 make tracehash && \
25 make combineImage
26endef
27
28OCC_P8_BUILD_CMDS ?= $(OCC_P8_BUILD_CMDS_P8)
29
30define OCC_P8_INSTALL_IMAGES_CMDS
31 mkdir -p $(STAGING_DIR)/occ
32 cp $(@D)/$(OCC_P8_IMAGE_BIN_PATH) $(OCC_P8_STAGING_DIR)/$(BR2_OCC_P8_BIN_FILENAME)
33endef
34
35$(eval $(generic-package))