forked from nrfconnect/sdk-wi-fiquicktrack-controlappc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.controlappc-tp.Makefile
59 lines (45 loc) · 1.39 KB
/
package.controlappc-tp.Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
include $(TOPDIR)/rules.mk
PKG_NAME:=controlappc-tp
PKG_RELEASE:=1.0.6
PKG_MAINTAINER:=WFA
PKG_LICENSE:=WFA
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_RELEASE)
PKG_BUILD_PARALLEL:=1
TARGET_LDFLAGS_C:=$(TARGET_LDFLAGS)
STAMP_CONFIGURED:=$(STAMP_CONFIGURED)_$(CONFIG_WPA_MSG_MIN_PRIORITY)
DRIVER_MAKEOPTS=
# Full
include $(INCLUDE_DIR)/package.mk
define Package/controlappc-tp/default
SECTION:=net
CATEGORY:=Network
TITLE:=ControlAppC from Wi-Fi Alliance QuickTrack Project
URL:=http://wi-fi.org/
endef
define Package/controlappc-tp
$(call Package/controlappc-tp/default)
TITLE+= (WFA)
endef
#define Build/Compile/hostapd-wfa
define Build/Compile
$(info ************ Build/Compile/controlappc-tp **********)
$(call Build/RunMake, \
)
endef
define Build/Prepare
$(info ************ Build/Prepare **********)
$(INSTALL_DIR) $(PKG_BUILD_DIR)
cp -rf ./src/* $(PKG_BUILD_DIR)/
endef
define Build/RunMake
$(info ************ Build/RunMake $(TARGET_CC) **********)
CC=$(TARGET_CC) LD=$(TARGET_LD) $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/$(1)
$(2)
endef
define Package/controlappc-tp/install
$(info ************ Package/controlappc-tp/install $(PKG_BUILD_DIR) **********)
$(INSTALL_DIR) $(1)/usr/local/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/app $(1)/usr/local/bin/controlappc-tp
endef
#Package/hostapd-wfa/install = $(Package/hostapd-wfa/install)
$(eval $(call BuildPackage,controlappc-tp,))