blob: 2f6d5b4b911ae05b8e3cd2a2834c8654512e3468 [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
Stewart Smith82f33c72018-09-18 13:46:55 +100017 SBE_COMMIT_ID=$(SBE_VERSION) $(MAKE) -C $(@D) \
William A. Kennington III0006af52017-04-19 14:24:45 -070018 LD_LIBRARY_PATH=$(HOST_DIR)/usr/lib \
19 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/
Murulidhar Natarajud2a24132019-05-06 10:29:05 -050025 python $(@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))