blob: e95dbe515eab1e1bc262f81298ac83ce5398273b [file] [log] [blame]
Sachin Guptadf0b6a02017-03-16 08:59:51 -05001################################################################################
2#
3# SBE
4#
5################################################################################
6
Stewart Smith062ec2d2018-04-29 20:24:20 -05007SBE_VERSION = $(call qstrip,$(BR2_SBE_VERSION))
8SBE_SITE = $(call github,open-power,sbe,$(SBE_VERSION))
Sachin Guptadf0b6a02017-03-16 08:59:51 -05009
10SBE_LICENSE = Apache-2.0
Klaus Heinrich Kiwidc4a86f2020-05-11 16:29:14 -030011SBE_DEPENDENCIES = host-ppe42-toolchain hcode
Sachin Guptadf0b6a02017-03-16 08:59:51 -050012
13SBE_INSTALL_IMAGES = YES
14SBE_INSTALL_TARGET = NO
15
16define SBE_BUILD_CMDS
Klaus Heinrich Kiwi7965ad62021-02-04 06:48:10 -060017 SBE_COMMIT_ID=$(SBE_VERSION) $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \
18 LD_LIBRARY_PATH=$(HOST_DIR)/usr/lib \
William A. Kennington III0006af52017-04-19 14:24:45 -070019 CROSS_COMPILER_PATH=$(PPE42_GCC_BIN) \
20 all
Sachin Guptadf0b6a02017-03-16 08:59:51 -050021endef
22
23define SBE_INSTALL_IMAGES_CMDS
William A. Kennington III0006af52017-04-19 14:24:45 -070024 $(INSTALL) -D $(@D)/images/p9_ipl_build $(HOST_DIR)/usr/bin/
Roland Veloz6fea1972022-06-28 09:59:01 -050025 python2 $(@D)/src/build/sbeOpDistribute.py --sbe_binary_dir=$(STAGING_DIR)/sbe_binaries --img_dir=$(@D)/images --sbe_binary_filename $(BR2_HOSTBOOT_BINARY_SBE_FILENAME)
William A. Kennington III0006af52017-04-19 14:24:45 -070026 cp $(@D)/src/build/sbeOpDistribute.py $(STAGING_DIR)/sbe_binaries/
Sachin Guptadf0b6a02017-03-16 08:59:51 -050027endef
28
29$(eval $(generic-package))