batctl: Use standard Build/Compile rule
batctl isn't using any special rules in Build/Compile. It is cleaner to directly use the global Build/Compile/Default instead of having a functional similar copy in the package Makefile Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
44e375c0a3
commit
f921555cf7
|
@ -88,18 +88,11 @@ TARGET_LDFLAGS += -Wl,--gc-sections
|
||||||
TARGET_CFLAGS += -flto
|
TARGET_CFLAGS += -flto
|
||||||
TARGET_LDFLAGS += -fuse-linker-plugin
|
TARGET_LDFLAGS += -fuse-linker-plugin
|
||||||
|
|
||||||
MAKE_BATCTL_ENV += \
|
MAKE_VARS += \
|
||||||
CPPFLAGS="$(TARGET_CPPFLAGS)" \
|
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
||||||
LIBNL_NAME="libnl-tiny" \
|
LIBNL_NAME="libnl-tiny" \
|
||||||
LIBNL_GENL_NAME="libnl-tiny"
|
LIBNL_GENL_NAME="libnl-tiny"
|
||||||
|
|
||||||
MAKE_BATCTL_ARGS += \
|
MAKE_FLAGS += \
|
||||||
REVISION="$(PKG_BATCTL_SHORTREV)" \
|
|
||||||
CC="$(TARGET_CC)" \
|
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
||||||
batctl install \
|
|
||||||
REVISION="openwrt-$(PKG_VERSION)-$(PKG_RELEASE)"
|
REVISION="openwrt-$(PKG_VERSION)-$(PKG_RELEASE)"
|
||||||
|
|
||||||
config-n := \
|
config-n := \
|
||||||
|
@ -222,10 +215,7 @@ $(call ConfigVars,n)$(call ConfigVars,y)
|
||||||
endef
|
endef
|
||||||
$(eval $(call shexport,batctl_config))
|
$(eval $(call shexport,batctl_config))
|
||||||
|
|
||||||
define Build/Compile
|
MAKE_FLAGS += $$$$$(call shvar,batctl_config)
|
||||||
$(MAKE_BATCTL_ENV) $(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_BATCTL_ARGS) \
|
|
||||||
$$$$$(call shvar,batctl_config)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/batctl-tiny/install
|
define Package/batctl-tiny/install
|
||||||
$(INSTALL_DIR) $(1)/usr/libexec
|
$(INSTALL_DIR) $(1)/usr/libexec
|
||||||
|
|
Loading…
Reference in New Issue