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.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=kmod-swconfig
13 PKG_BUILD_DEPENDS
:=libnl
15 include $(INCLUDE_DIR
)/package.mk
17 define Package
/swconfig
20 DEPENDS
:=@LINUX_2_6_26||LINUX_2_6_27||LINUX_2_6_28||LINUX_2_6_29
21 TITLE
:=Switch configuration utility
25 -I
$(LINUX_DIR
)/include \
29 mkdir
-p
$(PKG_BUILD_DIR
)
30 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
34 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
35 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
36 $(TARGET_CONFIGURE_OPTS
) \
37 LIBS
="$(STAGING_DIR)/usr/lib/libnl.a -lm"
40 define Package
/swconfig
/install
41 $(INSTALL_DIR
) $(1)/bin
42 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/swconfig
$(1)/bin
/swconfig
45 $(eval
$(call BuildPackage
,swconfig
))