mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
9ac50c0aa3
Mark the package as nonshared to build it in the target specific build
step 1 of the build bots instead of the architecture generic build step
2. In the build step 2 it may be left out if we build it using a
different target.
Fixes: 8619d7af67
("kirkwood: add D-Link DNS-320L support")
Link: https://github.com/openwrt/openwrt/pull/16031
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=dns320l-mcu
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL=https://github.com/wigyori/dns320l-daemon.git
|
|
PKG_SOURCE_DATE:=2024-05-11
|
|
PKG_SOURCE_VERSION:=c74941880e0a8d2bc0344b3256b984397512e8c3
|
|
PKG_MIRROR_HASH:=e0f186a0c139ccfac3d311f49e2fecdbd02fa3f9fe6ced4b1ce0baa603d49fc3
|
|
PKG_MAINTAINER:=Zoltan HERPAI <wigyori@uid0.hu>
|
|
PKG_LICENSE:=GPL-3.0+
|
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/dns320l-mcu
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Utility to control the MCU on DNS-320L
|
|
DEPENDS:=@TARGET_kirkwood
|
|
URL:=https://github.com/wigyori/dns320l-mcu
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS) -Wall"
|
|
endef
|
|
|
|
define Package/dns320l-mcu/install
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/dns320l-mcu.init $(1)/etc/init.d/dns320l-mcu
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dns320l-daemon $(1)/usr/bin/dns320l-mcu
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,dns320l-mcu))
|