2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/ksymoops/v2.4/
17 PKG_MD5SUM:=4a8249e182a5dbc75e566d162e9f3314
19 PKG_BUILD_DEPENDS:=binutils
21 include $(INCLUDE_DIR)/package.mk
23 define Package/ksymoops
26 DEPENDS:=@mips||mipsel||m68k||i386
27 TITLE:=Interpret oops of the kernel
28 URL:=http://www.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/
32 define Package/kexec-tools/description
35 define Build/Configure
38 TARGET=$(strip $(shell echo $(TARGET_CFLAGS) | cut -d- -f4 | cut -d= -f2))
41 $(MAKE) -C $(PKG_BUILD_DIR) \
43 BFD_PREFIX="$(STAGING_DIR)/usr" \
44 DEF_TARGET='\"$(TARGET)\"' \
45 DEF_ARCH='\"$(ARCH)\"' \
46 DEF_MAP='\"$(LINUX_DIR)/System.map\"' \
47 CROSS="$(TARGET_CROSS)" \
48 INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
53 define Package/ksymoops/install
54 $(INSTALL_DIR) $(1)/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/$(TARGET_CROSS)ksymoops $(1)/bin/ksymoops
58 $(eval $(call BuildPackage,ksymoops))