2 # Copyright (C) 2021 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_SOURCE_URL
=$(PROJECT_GIT
)/project
/qosify.git
14 PKG_SOURCE_DATE
:=2022-04-08
15 PKG_SOURCE_VERSION
:=ef82defaae26619e5b2ebddfdd86e9de61c399f1
16 PKG_MIRROR_HASH
:=8e4ca65d23a85aad774af51dc62cfaa4615111ffd2c7922258ac8f026a62b013
17 PKG_RELEASE
:=$(AUTORELEASE
)
20 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
22 PKG_BUILD_DEPENDS
:=bpf-headers
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
27 include $(INCLUDE_DIR
)/bpf.mk
28 include $(INCLUDE_DIR
)/nls.mk
33 TITLE
:=A simple QoS solution based eBPF
+ CAKE
34 DEPENDS
:=+libbpf
+libubox
+libubus
+libnl-tiny
+kmod-sched-cake
+kmod-sched-bpf
+kmod-ifb
+tc
$(BPF_DEPENDS
)
38 -Wno-error
=deprecated-declarations \
39 -I
$(STAGING_DIR
)/usr
/include/libnl-tiny \
40 -I
$(STAGING_DIR
)/usr
/include
43 -DLIBNL_LIBS
=-lnl-tiny
46 $(call CompileBPF
,$(PKG_BUILD_DIR
)/qosify-bpf.c
)
47 $(Build
/Compile
/Default
)
50 define Package
/qosify
/conffiles
52 /etc
/qosify
/00-defaults.conf
55 define Package
/qosify
/install
62 $(1)/etc
/hotplug.d
/net \
63 $(1)/etc
/hotplug.d
/iface
64 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/qosify-bpf.o
$(1)/lib
/bpf
66 $(PKG_INSTALL_DIR
)/usr
/bin
/qosify \
67 .
/files
/qosify-status \
69 $(INSTALL_BIN
) .
/files
/qosify.init
$(1)/etc
/init.d
/qosify
70 $(INSTALL_DATA
) .
/files
/qosify-defaults.conf
$(1)/etc
/qosify
/00-defaults.conf
71 $(INSTALL_DATA
) .
/files
/qosify.conf
$(1)/etc
/config
/qosify
72 $(INSTALL_DATA
) .
/files
/qosify.hotplug
$(1)/etc
/hotplug.d
/net
/10-qosify
73 $(INSTALL_DATA
) .
/files
/qosify.hotplug
$(1)/etc
/hotplug.d
/iface
/10-qosify
76 $(eval
$(call BuildPackage
,qosify
))