TARGET_CFLAGS += -flto
TARGET_LDFLAGS += -fuse-linker-plugin
-MAKE_BATCTL_ENV += \
- CPPFLAGS="$(TARGET_CPPFLAGS)" \
- CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="$(TARGET_LDFLAGS)" \
+MAKE_VARS += \
LIBNL_NAME="libnl-tiny" \
LIBNL_GENL_NAME="libnl-tiny"
-MAKE_BATCTL_ARGS += \
- REVISION="$(PKG_BATCTL_SHORTREV)" \
- CC="$(TARGET_CC)" \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- batctl install \
+MAKE_FLAGS += \
REVISION="openwrt-$(PKG_VERSION)-$(PKG_RELEASE)"
config-n := \
endef
$(eval $(call shexport,batctl_config))
-define Build/Compile
- $(MAKE_BATCTL_ENV) $(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_BATCTL_ARGS) \
- $$$$$(call shvar,batctl_config)
-endef
+MAKE_FLAGS += $$$$$(call shvar,batctl_config)
define Package/batctl-tiny/install
$(INSTALL_DIR) $(1)/usr/libexec