mirror of
https://git.openwrt.org/feed/routing.git
synced 2025-01-09 04:07:48 +08:00
alfred: Use standard Build/Compile rule
alfred 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
eb8a4e8e87
commit
4c4b836d89
@ -54,7 +54,7 @@ define Package/alfred/config
|
|||||||
source "$(SOURCE)/Config.in"
|
source "$(SOURCE)/Config.in"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
MAKE_ALFRED_FLAGS=\
|
MAKE_FLAGS += \
|
||||||
CONFIG_ALFRED_VIS=$(if $(CONFIG_PACKAGE_ALFRED_VIS),y,n) \
|
CONFIG_ALFRED_VIS=$(if $(CONFIG_PACKAGE_ALFRED_VIS),y,n) \
|
||||||
CONFIG_ALFRED_GPSD=$(if $(CONFIG_PACKAGE_ALFRED_GPSD),y,n) \
|
CONFIG_ALFRED_GPSD=$(if $(CONFIG_PACKAGE_ALFRED_GPSD),y,n) \
|
||||||
CONFIG_ALFRED_CAPABILITIES=n \
|
CONFIG_ALFRED_CAPABILITIES=n \
|
||||||
@ -65,12 +65,6 @@ MAKE_ALFRED_FLAGS=\
|
|||||||
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
|
||||||
TARGET_LDFLAGS += -Wl,--gc-sections -fuse-linker-plugin
|
TARGET_LDFLAGS += -Wl,--gc-sections -fuse-linker-plugin
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
|
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_FLAGS) $(MAKE_ALFRED_FLAGS) all
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/alfred/install
|
define Package/alfred/install
|
||||||
$(INSTALL_DIR) $(1)/usr/sbin
|
$(INSTALL_DIR) $(1)/usr/sbin
|
||||||
cp -fpR $(PKG_BUILD_DIR)/alfred $(1)/usr/sbin/
|
cp -fpR $(PKG_BUILD_DIR)/alfred $(1)/usr/sbin/
|
||||||
|
Loading…
Reference in New Issue
Block a user