Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # SBE |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Stewart Smith | 062ec2d | 2018-04-29 20:24:20 -0500 | [diff] [blame] | 7 | SBE_VERSION = $(call qstrip,$(BR2_SBE_VERSION)) |
| 8 | SBE_SITE = $(call github,open-power,sbe,$(SBE_VERSION)) |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 9 | |
| 10 | SBE_LICENSE = Apache-2.0 |
Klaus Heinrich Kiwi | dc4a86f | 2020-05-11 16:29:14 -0300 | [diff] [blame] | 11 | SBE_DEPENDENCIES = host-ppe42-toolchain hcode |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 12 | |
| 13 | SBE_INSTALL_IMAGES = YES |
| 14 | SBE_INSTALL_TARGET = NO |
| 15 | |
| 16 | define SBE_BUILD_CMDS |
Klaus Heinrich Kiwi | 7965ad6 | 2021-02-04 06:48:10 -0600 | [diff] [blame] | 17 | SBE_COMMIT_ID=$(SBE_VERSION) $(HOST_MAKE_ENV) $(MAKE) -C $(@D) \ |
| 18 | LD_LIBRARY_PATH=$(HOST_DIR)/usr/lib \ |
William A. Kennington III | 0006af5 | 2017-04-19 14:24:45 -0700 | [diff] [blame] | 19 | CROSS_COMPILER_PATH=$(PPE42_GCC_BIN) \ |
| 20 | all |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 21 | endef |
| 22 | |
| 23 | define SBE_INSTALL_IMAGES_CMDS |
William A. Kennington III | 0006af5 | 2017-04-19 14:24:45 -0700 | [diff] [blame] | 24 | $(INSTALL) -D $(@D)/images/p9_ipl_build $(HOST_DIR)/usr/bin/ |
Roland Veloz | 6fea197 | 2022-06-28 09:59:01 -0500 | [diff] [blame] | 25 | 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 III | 0006af5 | 2017-04-19 14:24:45 -0700 | [diff] [blame] | 26 | cp $(@D)/src/build/sbeOpDistribute.py $(STAGING_DIR)/sbe_binaries/ |
Sachin Gupta | df0b6a0 | 2017-03-16 08:59:51 -0500 | [diff] [blame] | 27 | endef |
| 28 | |
| 29 | $(eval $(generic-package)) |