aboutsummaryrefslogtreecommitdiffstats
path: root/package
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
commitd9e54d1e0bdee4c7ccad8d9811b566237a59406f (patch)
treef8a2188c213d063c99a4f8d294a2ea07f57560c8 /package
parent178721f76bf6e298b36f6cbfc725ea3ce689a57c (diff)
downloadupstream-d9e54d1e0bdee4c7ccad8d9811b566237a59406f.tar.gz
upstream-d9e54d1e0bdee4c7ccad8d9811b566237a59406f.tar.bz2
upstream-d9e54d1e0bdee4c7ccad8d9811b566237a59406f.zip
export switch-core.h to $(STAGING_DIR)
SVN-Revision: 10138
Diffstat (limited to 'package')
-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/