Imported Jonathan Lahav's updates to openwrt-makefile.

Replaced "dna" everywhere with "servald". #26
This commit is contained in:
gardners 2012-10-12 21:40:31 +10:30
parent 52ccd07020
commit a82c8f2f41

View File

@ -1,6 +1,6 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dna
PKG_NAME:=servald
PKG_RELEASE:=1
PKG_VERSION:=1
@ -8,24 +8,26 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/dna
    SECTION:=utils
    CATEGORY:=Utilities
    TITLE:=dna
    DESCRIPTION:=Serval Distributed Numbering Architecture Reference Implementation
define Package/servald
SECTION:=utils
CATEGORY:=Utilities
TITLE:=servald
endef
define Package/servald/description
Serval Distributed Numbering Architecture Reference Implementation
endef
define Build/Compile
    mkdir -p $(PKG_BUILD_DIR)
    $(CP) ./src/* $(PKG_BUILD_DIR)/
    $(TARGET_CC) $(PKG_BUILD_DIR)/*.c -o $(PKG_BUILD_DIR)/dna
    ## $(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR)
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
$(TARGET_CC) $(PKG_BUILD_DIR)/*.c -o $(PKG_BUILD_DIR)/servald
# $(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR)
endef
define Package/dna/install
    $(INSTALL_DIR) $(1)/usr/bin
    $(INSTALL_BIN) $(PKG_BUILD_DIR)/dna $(1)/usr/bin
define Package/servald/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/servald $(1)/usr/bin
endef
$(eval $(call BuildPackage,dna))
$(eval $(call BuildPackage,servald))