wifilife: fix for open build

This commit is contained in:
Anjan Chanda 2018-10-05 18:04:04 +02:00
parent 564838aa9f
commit 803f139c8c
2 changed files with 4 additions and 7 deletions

View file

@ -83,8 +83,8 @@ build_wifilife_consumer() {
[ -n "$ver" -a -n "$commit" ] || return
ssh $SERVER "test -f $FPATH/wifilife-$target-${ver}_${commit}.tar.xz" && return
cd ./build_dir/target-*/wifilife-$ver/ipkg-* || cd ./build_dir/target-mips*musl-*/wifilife-$ver/ipkg-*
cp -rf wifilife wifilife-${target}-$ver
rm -rf wifilife-${target}-$ver/CONTROL/
mkdir -p wifilife-${target}-$ver/src
cp -rf wifilife/usr/sbin/* wifilife-${target}-$ver/src/
tar Jcf wifilife-${target}-${ver}_${commit}.tar.xz wifilife-${target}-$ver
scp -pv wifilife-$target-${ver}_${commit}.tar.xz $SERVER:$FPATH/
cp wifilife-${target}-${ver}_${commit}.tar.xz $curdir/

View file

@ -18,7 +18,6 @@ else
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git@dev.iopsys.eu:iopsys/wifilife.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(PKG_SOURCE_VERSION).tar.xz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(BASE_PKG_VERSION)
endif
include $(INCLUDE_DIR)/package.mk
@ -43,9 +42,8 @@ endef
ifeq ($(CONFIG_WIFILIFE_OPEN),y)
define Build/Compile
endef
define Package/wifilife/install
endef
else
endif
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include \
-I$(STAGING_DIR)/usr/include/libnl3 \
@ -59,6 +57,5 @@ define Package/wifilife/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/wifiagent $(1)/usr/sbin/
endef
endif
$(eval $(call BuildPackage,wifilife))