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 include $(INCLUDE_DIR
)/package.mk
21 define Package
/ksymoops
24 DEPENDS
:=@LINUX_2_6 @mips||mipsel||m68k||i386
+libbfd
25 TITLE
:=Interpret oops of the kernel
26 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/kernel
/ksymoops
/v2.4
/
30 define Package
/kexec-tools
/description
33 define Build
/Configure
36 TARGET
=$(strip $(shell echo
$(TARGET_CFLAGS
) | cut
-d-
-f4 | cut
-d
= -f2
))
39 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
41 BFD_PREFIX
="$(STAGING_DIR)/usr" \
42 DEF_TARGET
='\"$(TARGET)\"' \
43 DEF_ARCH
='\"$(ARCH)\"' \
44 DEF_MAP
='\"$(LINUX_DIR)/System.map\"' \
45 CROSS
="$(TARGET_CROSS)" \
46 INSTALL_PREFIX
="$(PKG_INSTALL_DIR)" \
50 define Package
/ksymoops
/install
51 $(INSTALL_DIR
) $(1)/bin
52 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/$(TARGET_CROSS
)ksymoops
$(1)/bin
/ksymoops
55 $(eval
$(call BuildPackage
,ksymoops
))