2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_NAME
:=kmod-swconfig
14 PKG_BUILD_DEPENDS
:=libnl
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/swconfig
21 DEPENDS
:=@LINUX_2_6_26||LINUX_2_6_27
22 TITLE
:=Switch configuration utility
26 -I
$(LINUX_DIR
)/include \
30 mkdir
-p
$(PKG_BUILD_DIR
)
31 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
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"
41 define Package
/swconfig
/install
42 $(INSTALL_DIR
) $(1)/bin
43 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/swconfig
$(1)/bin
/swconfig
46 $(eval
$(call BuildPackage
,swconfig
))