move diag from target/linux/package/ to package/.
[openwrt.git] / package / nvram / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nvram
6 PKG_RELEASE:=1
7
8 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
9
10 include $(TOPDIR)/package/rules.mk
11
12 define Package/nvram
13 SECTION:=base
14 DEPENDS:=@LINUX_2_4_BRCM
15 TITLE:=Broadcom config utility
16 DESCRIPTION:=control utility for broadcom's 'nvram' config area
17 endef
18
19 define Build/Prepare
20 mkdir -p $(PKG_BUILD_DIR)
21 $(CP) ./src/* $(PKG_BUILD_DIR)
22 endef
23
24 define Package/nvram/install
25 install -d -m0755 $(1)/usr/lib
26 install -d -m0755 $(1)/usr/sbin
27 $(CP) $(PKG_BUILD_DIR)/*.so $(1)/usr/lib
28 install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin
29 endef
30
31 define Build/InstallDev
32 mkdir -p $(STAGING_DIR)/usr/lib
33 $(CP) $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
34 endef
35
36 define Build/UninstallDev
37 rm -f $(STAGING_DIR)/usr/lib/libshared*.so \
38 $(STAGING_DIR)/usr/lib/libnvram*.so
39 endef
40
41 $(eval $(call BuildPackage,nvram))
This page took 0.03466 seconds and 5 git commands to generate.