prevent madwifi from building on UML
[openwrt.git] / package / nvram / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nvram
12 PKG_RELEASE:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/nvram
17 SECTION:=utils
18 CATEGORY:=Utilities
19 DEPENDS:=@TARGET_brcm_2_4
20 TITLE:=Broadcom config utility
21 endef
22
23 define Package/nvram/description
24 This package contains an utility to control broadcom's 'nvram' config area.
25 endef
26
27 define Build/Prepare
28 mkdir -p $(PKG_BUILD_DIR)
29 $(CP) ./src/* $(PKG_BUILD_DIR)
30 endef
31
32 define Build/InstallDev
33 mkdir -p $(STAGING_DIR)/usr/lib
34 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(STAGING_DIR)/usr/lib/
35 endef
36
37 define Build/UninstallDev
38 rm -f $(STAGING_DIR)/usr/lib/lib{nvram,shared}*.so
39 endef
40
41 define Package/nvram/install
42 $(INSTALL_DIR) $(1)/etc/init.d
43 $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
48 endef
49
50 $(eval $(call BuildPackage,nvram))
This page took 0.043862 seconds and 5 git commands to generate.