aboutsummaryrefslogtreecommitdiffstats
path: root/package/ksymoops/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-06-26 21:35:39 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-06-26 21:35:39 +0000
commit501c2f9a01fc4cf7c59bbb61a371dc29634588e8 (patch)
treef43be17b9ebb8ba98416f1cc64fbe66a95d0a3da /package/ksymoops/Makefile
parent287a2c0ba94defa0d2615c98a2495dcd815898e6 (diff)
downloadupstream-501c2f9a01fc4cf7c59bbb61a371dc29634588e8.tar.gz
upstream-501c2f9a01fc4cf7c59bbb61a371dc29634588e8.tar.bz2
upstream-501c2f9a01fc4cf7c59bbb61a371dc29634588e8.zip
add a cross-version of ksymoops
SVN-Revision: 16575
Diffstat (limited to 'package/ksymoops/Makefile')
-rw-r--r--package/ksymoops/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/package/ksymoops/Makefile b/package/ksymoops/Makefile
new file mode 100644
index 0000000000..be6f9b6beb
--- /dev/null
+++ b/package/ksymoops/Makefile
@@ -0,0 +1,55 @@
+#
+# Copyright (C) 2009 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=ksymoops
+PKG_VERSION:=2.4.11
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/ksymoops/v2.4/
+PKG_MD5SUM:=4a8249e182a5dbc75e566d162e9f3314
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/ksymoops
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=@LINUX_2_6 @TARGET_mips||TARGET_mips||TARGET_m68k||TARGET_x86 +libbfd
+ TITLE:=Interpret oops of the kernel
+ URL:=http://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/
+ MENU:=1
+endef
+
+define Package/kexec-tools/description
+endef
+
+define Build/Configure
+endef
+
+TARGET=$(strip $(shell echo $(TARGET_CFLAGS) | cut -d- -f4 | cut -d= -f2))
+
+define Build/Compile
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC="$(TARGET_CC)" \
+ BFD_PREFIX="$(STAGING_DIR)/usr" \
+ DEF_TARGET='\"$(TARGET)\"' \
+ DEF_ARCH='\"$(ARCH)\"' \
+ DEF_MAP='\"$(LINUX_DIR)/System.map\"' \
+ CROSS="$(TARGET_CROSS)" \
+ INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
+ all install
+endef
+
+define Package/ksymoops/install
+ $(INSTALL_DIR) $(1)/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/$(TARGET_CROSS)ksymoops $(1)/bin/ksymoops
+endef
+
+$(eval $(call BuildPackage,ksymoops))