aboutsummaryrefslogtreecommitdiffstats
path: root/package/switch/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-01-06 19:28:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-01-06 19:28:26 +0000
commita133f02be23f88dedefe765053a1e59c60a5cdd8 (patch)
treea98aa3293632311779b02d59c294fc2b2649de5f /package/switch/Makefile
parent19887d557e01aad2145fa3ad086bc12a8d04695a (diff)
downloadupstream-a133f02be23f88dedefe765053a1e59c60a5cdd8.tar.gz
upstream-a133f02be23f88dedefe765053a1e59c60a5cdd8.tar.bz2
upstream-a133f02be23f88dedefe765053a1e59c60a5cdd8.zip
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/Makefile')
-rw-r--r--package/switch/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/package/switch/Makefile b/package/switch/Makefile
index 74e5778e23..43a4ee24b6 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/