2019-03-27 20:32:25 -05:00
|
|
|
.ONESHELL:
|
|
|
|
SHELL = /bin/bash
|
|
|
|
|
|
|
|
MAIN_TARGET = applibs_1.mlnx.$(MLNX_SDK_DEB_VERSION)_amd64.deb
|
2019-08-08 13:10:55 -05:00
|
|
|
DERIVED_TARGETS = applibs-dev_1.mlnx.$(MLNX_SDK_DEB_VERSION)_amd64.deb applibs-dbgsym_1.mlnx.$(MLNX_SDK_DEB_VERSION)_amd64.deb
|
2019-03-27 20:32:25 -05:00
|
|
|
PACKAGE_NAME = applibs
|
|
|
|
|
|
|
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
|
|
|
# get sources
|
|
|
|
rm -rf $(PACKAGE_NAME)-$(MLNX_SDK_VERSION)-$(MLNX_SDK_ISSU_VERSION)
|
|
|
|
|
|
|
|
wget -c $(MLNX_SDK_SOURCE_BASE_URL)/$(PACKAGE_NAME)-$(MLNX_SDK_VERSION)-$(MLNX_SDK_ISSU_VERSION).tar.gz -O - | tar -xz
|
|
|
|
|
|
|
|
# build
|
|
|
|
pushd $(PACKAGE_NAME)-$(MLNX_SDK_VERSION)-$(MLNX_SDK_ISSU_VERSION)
|
|
|
|
|
|
|
|
sed -i "s/sx-libnl/$(LIBNL3)/g" ./debian/control
|
|
|
|
sed -i "s/-Werror//g" ./configure.in
|
|
|
|
|
|
|
|
if [ -f autogen.sh ]; then
|
|
|
|
./autogen.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
debuild -b -us -uc -j$(SONIC_CONFIG_MAKE_JOBS)
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
mv $(DERIVED_TARGETS) $* $(DEST)/
|
|
|
|
|
|
|
|
$(addprefix $(DEST)/, $(DERIVED_TARGETS)): $(DEST)/% : $(DEST)/$(MAIN_TARGET)
|