[brcm63xx] turn on size optimization for bcm63xx
[openwrt.git] / package / ksymoops / Makefile
1 #
2 # Copyright (C) 2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=ksymoops
12 PKG_VERSION:=2.4.11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@KERNEL/linux/utils/kernel/ksymoops/v2.4/
17 PKG_MD5SUM:=4a8249e182a5dbc75e566d162e9f3314
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ksymoops
22 SECTION:=utils
23 CATEGORY:=Utilities
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/
27 MENU:=1
28 endef
29
30 define Package/kexec-tools/description
31 endef
32
33 define Build/Configure
34 endef
35
36 TARGET=$(strip $(shell echo $(TARGET_CFLAGS) | cut -d- -f4 | cut -d= -f2))
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 CC="$(TARGET_CC)" \
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)" \
47 all install
48 endef
49
50 define Package/ksymoops/install
51 $(INSTALL_DIR) $(1)/bin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/$(TARGET_CROSS)ksymoops $(1)/bin/ksymoops
53 endef
54
55 $(eval $(call BuildPackage,ksymoops))
This page took 0.054624 seconds and 5 git commands to generate.