blob: 987a9c05e5d6f3c850f2aee6a224019033a1c673 [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
Richard J. Knight3f0e29c2017-10-13 10:39:01 -050011SBE_DEPENDENCIES = host-ppe42-gcc 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/
25 python $(@D)/src/build/sbeOpDistribute.py --sbe_binary_dir=$(STAGING_DIR)/sbe_binaries --img_dir=$(@D)/images
26 cp $(@D)/src/build/sbeOpDistribute.py $(STAGING_DIR)/sbe_binaries/
Sachin Guptadf0b6a02017-03-16 08:59:51 -050027endef
28
29$(eval $(generic-package))