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
$(STAGING_DIR
)/usr
/include \
27 -I
$(LINUX_DIR
)/include \
31 mkdir
-p
$(PKG_BUILD_DIR
)
32 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)/
36 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 $(TARGET_CONFIGURE_OPTS
) \
39 LIBS
="$(STAGING_DIR)/usr/lib/libnl.a -lm"
42 define Package
/swconfig
/install
43 $(INSTALL_DIR
) $(1)/bin
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/swconfig
$(1)/bin
/swconfig
47 $(eval
$(call BuildPackage
,swconfig
))