[brcm63xx] add bcm63xx_spi based on reading shared/opensource/flash/spiflash.c from...
[openwrt.git] / package / swconfig / 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 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=kmod-swconfig
13 PKG_RELEASE:=1
14 PKG_BUILD_DEPENDS:=libnl
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/swconfig
19 SECTION:=base
20 CATEGORY:=Base system
21 DEPENDS:=@LINUX_2_6_26||LINUX_2_6_27
22 TITLE:=Switch configuration utility
23 endef
24
25 TARGET_CPPFLAGS += \
26 -I$(LINUX_DIR)/include \
27 -I$(PKG_BUILD_DIR)
28
29 define Build/Prepare
30 mkdir -p $(PKG_BUILD_DIR)
31 $(CP) ./src/* $(PKG_BUILD_DIR)/
32 endef
33
34 define Build/Compile
35 CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 $(TARGET_CONFIGURE_OPTS) \
38 LIBS="$(STAGING_DIR)/usr/lib/libnl.a -lm"
39 endef
40
41 define Package/swconfig/install
42 $(INSTALL_DIR) $(1)/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/swconfig $(1)/bin/swconfig
44 endef
45
46 $(eval $(call BuildPackage,swconfig))
This page took 0.041989 seconds and 5 git commands to generate.