summaryrefslogtreecommitdiffstats
path: root/package/switch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-06 19:28:26 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-01-06 19:28:26 +0000
commit9cd1d90624f3064a8c8da973baf31363a244ad4b (patch)
treea98aa3293632311779b02d59c294fc2b2649de5f /package/switch
parent90fba37c49479ed4e5233dc0d348cdf7d24c9ee1 (diff)
export switch-core.h to $(STAGING_DIR)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10138 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/switch')
-rw-r--r--package/switch/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/switch/Makefile b/package/switch/Makefile
index 74e5778e2..43a4ee24b 100644
--- a/package/switch/Makefile
+++ b/package/switch/Makefile
@@ -51,7 +51,16 @@ define Build/Compile
EXTRA_CFLAGS="$(BUILDFLAGS)" \
modules
endef
-
+
+define Build/InstallDev
+ mkdir -p $(1)/usr/include
+ $(CP) ./src/switch-core.h $(1)/usr/include/
+endef
+
+define Build/UninstallDev
+ rm -f $(1)/usr/include/switch-core.h
+endef
+
define KernelPackage/switch/install
$(INSTALL_DIR) $(1)/lib/network/
$(INSTALL_BIN) ./files/switch.sh $(1)/lib/network/