netifd: update to latest git HEAD
[openwrt/openwrt.git] / package / network / config / netifd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=netifd
4 PKG_RELEASE:=1
5
6 PKG_SOURCE_PROTO:=git
7 PKG_SOURCE_URL=$(PROJECT_GIT)/project/netifd.git
8 PKG_SOURCE_DATE:=2018-12-13
9 PKG_SOURCE_VERSION:=1ac1c78b30dec00f940cc0d1de7b5fc08d8b4226
10 PKG_MIRROR_HASH:=be6377de780e601cc701b55aae4582d6a94c55da84151dc79175cc942338e285
11 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
12
13 PKG_LICENSE:=GPL-2.0
14 PKG_LICENSE_FILES:=
15
16 PKG_BUILD_PARALLEL:=1
17
18 include $(INCLUDE_DIR)/package.mk
19 include $(INCLUDE_DIR)/cmake.mk
20
21 define Package/netifd
22 SECTION:=base
23 CATEGORY:=Base system
24 DEPENDS:=+libuci +libnl-tiny +libubus +ubus +ubusd +jshn +libubox
25 TITLE:=OpenWrt Network Interface Configuration Daemon
26 endef
27
28 TARGET_CFLAGS += \
29 -I$(STAGING_DIR)/usr/include/libnl-tiny \
30 -I$(STAGING_DIR)/usr/include \
31 -flto
32
33 TARGET_LDFLAGS += -flto -fuse-linker-plugin
34
35 CMAKE_OPTIONS += \
36 -DLIBNL_LIBS=-lnl-tiny \
37 -DDEBUG=1
38
39 define Package/netifd/install
40 $(INSTALL_DIR) $(1)/sbin
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/netifd $(1)/sbin/
42 $(CP) ./files/* $(1)/
43 $(CP) $(PKG_BUILD_DIR)/scripts/* $(1)/lib/netifd/
44 endef
45
46 $(eval $(call BuildPackage,netifd))