move a few development packages to trunk and add myself as a maintainer
git-svn-id: svn://svn.openwrt.org/openwrt/packages@33705 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -1,113 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=binutils
|
||||
PKG_VERSION:=$(strip $(subst ",, $(CONFIG_BINUTILS_VERSION)))
|
||||
#"))
|
||||
PKG_RELEASE:=5
|
||||
|
||||
PKG_SOURCE_URL:=@GNU/binutils
|
||||
PKG_SOURCE:=binutils-$(PKG_VERSION).tar.bz2
|
||||
PKG_MD5SUM:=
|
||||
|
||||
PATCH_DIR:=$(TOPDIR)/toolchain/binutils/patches/$(PKG_VERSION)
|
||||
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_LIBTOOL_PATHS:=. gas bfd opcodes gprof binutils ld libiberty gold intl
|
||||
PKG_REMOVE_FILES:=libtool.m4
|
||||
PKG_INSTALL:=1
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/binutils
|
||||
SECTION:=devel
|
||||
CATEGORY:=Development
|
||||
TITLE:=binutils
|
||||
DEPENDS:=+objdump
|
||||
endef
|
||||
|
||||
define Package/objdump
|
||||
SECTION:=devel
|
||||
CATEGORY:=Development
|
||||
TITLE:=objdump
|
||||
DEPENDS:=+zlib
|
||||
endef
|
||||
|
||||
define Package/binutils/description
|
||||
The Binutils package contains a linker, an assembler, and other tools for handling object files
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS = \
|
||||
--target=$(REAL_GNU_TARGET_NAME) \
|
||||
--host=$(REAL_GNU_TARGET_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--disable-multilib \
|
||||
--disable-werror \
|
||||
--disable-nls \
|
||||
--enable-shared \
|
||||
$(SOFT_FLOAT_CONFIG_OPTION) \
|
||||
$(call qstrip,$(CONFIG_EXTRA_BINUTILS_CONFIG_OPTIONS))
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
TARGET_LDFLAGS := -L$(PKG_BUILD_DIR)/libiberty $(TARGET_LDFLAGS)
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default)
|
||||
$(call Build/Compile/Default, \
|
||||
configure-bfd \
|
||||
configure-binutils \
|
||||
configure-etc \
|
||||
configure-gas \
|
||||
configure-gprof \
|
||||
configure-intl \
|
||||
configure-ld \
|
||||
configure-libiberty \
|
||||
configure-opcodes \
|
||||
)
|
||||
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR)/bfd/po Makefile
|
||||
endef
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(1)/usr/{lib,include}
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/* \
|
||||
$(1)/usr/lib/
|
||||
$(CP) \
|
||||
$(PKG_BUILD_DIR)/include/*.h \
|
||||
$(1)/usr/include/
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/include/* \
|
||||
$(1)/usr/include/
|
||||
rm -f $(1)/usr/include/gdbm.h
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR)/bfd/doc/ CFLAGS="-I$(PKG_BUILD_DIR)/include" chew
|
||||
$(call Build/Compile/Default)
|
||||
endef
|
||||
|
||||
define Package/objdump/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/objdump $(1)/usr/bin/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libopcodes*.so $(1)/usr/lib/
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libbfd*.so $(1)/usr/lib/
|
||||
endef
|
||||
|
||||
define Package/binutils/install
|
||||
$(INSTALL_DIR) $(1)/usr $(1)/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ $(1)/usr/
|
||||
mv $(1)/usr/bin/strings $(1)/bin/strings
|
||||
rm -f $(1)/usr/bin/objdump
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,binutils))
|
||||
$(eval $(call BuildPackage,objdump))
|
@ -1,89 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2009-2010 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=oprofile
|
||||
PKG_VERSION:=0.9.7
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=@SF/oprofile/
|
||||
PKG_MD5SUM:=8b5d1d9b65f84420bcc3234777ad3be3
|
||||
|
||||
PKG_BUILD_DEPENDS:=binutils
|
||||
PKG_FIXUP:=autoreconf
|
||||
PKG_INSTALL:=1
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
|
||||
define Package/oprofile
|
||||
SECTION:=devel
|
||||
CATEGORY:=Development
|
||||
TITLE:=OProfile System Profiler
|
||||
URL:=http://oprofile.sourceforge.net
|
||||
DEPENDS:=+libpopt +kmod-oprofile +libstdcpp +objdump
|
||||
endef
|
||||
|
||||
define Package/oprofile/description
|
||||
A transparent low-overhead system-wide profiler.
|
||||
endef
|
||||
|
||||
define Package/oprofile-utils
|
||||
SECTION:=devel
|
||||
CATEGORY:=Development
|
||||
TITLE:=OProfile System Profiler (extra utilities)
|
||||
URL:=http://oprofile.sourceforge.net
|
||||
DEPENDS:=oprofile
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default, \
|
||||
--with-kernel-support \
|
||||
--without-x \
|
||||
)
|
||||
endef
|
||||
|
||||
TARGET_CXXFLAGS += -fpermissive
|
||||
TARGET_LDFLAGS := -L$(STAGING_DIR)/usr/lib $(TARGET_LDFLAGS)
|
||||
|
||||
define Package/oprofile-utils/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_INSTALL_DIR)/usr/bin/opannotate \
|
||||
$(PKG_INSTALL_DIR)/usr/bin/oparchive \
|
||||
$(PKG_INSTALL_DIR)/usr/bin/opgprof \
|
||||
$(1)/usr/bin
|
||||
endef
|
||||
|
||||
define Package/oprofile/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_INSTALL_DIR)/usr/bin/* \
|
||||
$(1)/usr/bin
|
||||
|
||||
rm -f \
|
||||
$(1)/usr/bin/opannotate \
|
||||
$(1)/usr/bin/oparchive \
|
||||
$(1)/usr/bin/opgprof
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/lib/oprofile
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/lib/oprofile/*.so* \
|
||||
$(1)/usr/lib/oprofile/
|
||||
|
||||
$(INSTALL_DIR) $(1)/usr/share/oprofile
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/share/oprofile/stl.pat \
|
||||
$(PKG_INSTALL_DIR)/usr/share/oprofile/$(patsubst x86,i386,$(LINUX_KARCH)) \
|
||||
$(1)/usr/share/oprofile/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,oprofile))
|
||||
$(eval $(call BuildPackage,oprofile-utils))
|
@ -1,20 +0,0 @@
|
||||
--- a/utils/opcontrol
|
||||
+++ b/utils/opcontrol
|
||||
@@ -248,7 +248,7 @@ load_module_26()
|
||||
{
|
||||
grep oprofilefs /proc/filesystems >/dev/null
|
||||
if test "$?" -ne 0; then
|
||||
- modprobe oprofile
|
||||
+ insmod oprofile
|
||||
if test "$?" != "0"; then
|
||||
# couldn't load the module
|
||||
return
|
||||
@@ -278,7 +278,7 @@ load_module_24()
|
||||
{
|
||||
grep oprof /proc/devices >/dev/null
|
||||
if test "$?" -ne 0; then
|
||||
- modprobe oprofile
|
||||
+ insmod oprofile
|
||||
if test "$?" != "0"; then
|
||||
# couldn't load a module
|
||||
return
|
@ -1,64 +0,0 @@
|
||||
--- a/daemon/Makefile.am
|
||||
+++ b/daemon/Makefile.am
|
||||
@@ -1,4 +1,4 @@
|
||||
-SUBDIRS = liblegacy .
|
||||
+SUBDIRS = .
|
||||
|
||||
oprofiled_SOURCES = \
|
||||
init.c \
|
||||
@@ -49,7 +49,6 @@ AM_CFLAGS = @OP_CFLAGS@ -fno-omit-frame-
|
||||
bin_PROGRAMS = oprofiled
|
||||
|
||||
oprofiled_LDADD = \
|
||||
- liblegacy/liblegacy.a \
|
||||
../libabi/libabi.a \
|
||||
../libdb/libodb.a \
|
||||
../libop/libop.a \
|
||||
--- a/daemon/Makefile.in
|
||||
+++ b/daemon/Makefile.in
|
||||
@@ -70,7 +70,7 @@ am_oprofiled_OBJECTS = init.$(OBJEXT) op
|
||||
opd_extended.$(OBJEXT) opd_ibs.$(OBJEXT) \
|
||||
opd_ibs_trans.$(OBJEXT)
|
||||
oprofiled_OBJECTS = $(am_oprofiled_OBJECTS)
|
||||
-oprofiled_DEPENDENCIES = liblegacy/liblegacy.a ../libabi/libabi.a \
|
||||
+oprofiled_DEPENDENCIES = ../libabi/libabi.a \
|
||||
../libdb/libodb.a ../libop/libop.a ../libutil/libutil.a
|
||||
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
|
||||
depcomp = $(SHELL) $(top_srcdir)/depcomp
|
||||
@@ -285,7 +285,7 @@ top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
topdir = @topdir@
|
||||
-SUBDIRS = liblegacy .
|
||||
+SUBDIRS = .
|
||||
oprofiled_SOURCES = \
|
||||
init.c \
|
||||
oprofiled.c \
|
||||
@@ -331,7 +331,6 @@ AM_CPPFLAGS = \
|
||||
# -fno-omit-frame-pointer needed for daemon build: see ChangeLog-2004 02-23
|
||||
AM_CFLAGS = @OP_CFLAGS@ -fno-omit-frame-pointer
|
||||
oprofiled_LDADD = \
|
||||
- liblegacy/liblegacy.a \
|
||||
../libabi/libabi.a \
|
||||
../libdb/libodb.a \
|
||||
../libop/libop.a \
|
||||
--- a/daemon/oprofiled.c
|
||||
+++ b/daemon/oprofiled.c
|
||||
@@ -77,7 +77,6 @@ static char * events;
|
||||
static char * ext_feature;
|
||||
static int showvers;
|
||||
static struct oprofiled_ops * opd_ops;
|
||||
-extern struct oprofiled_ops opd_24_ops;
|
||||
extern struct oprofiled_ops opd_26_ops;
|
||||
|
||||
#define OPD_IMAGE_FILTER_HASH_SIZE 32
|
||||
@@ -477,9 +476,6 @@ static void opd_options(int argc, char c
|
||||
static struct oprofiled_ops * get_ops(void)
|
||||
{
|
||||
switch (op_get_interface()) {
|
||||
- case OP_INTERFACE_24:
|
||||
- printf("Using 2.4 OProfile kernel interface.\n");
|
||||
- return &opd_24_ops;
|
||||
case OP_INTERFACE_26:
|
||||
printf("Using 2.6+ OProfile kernel interface.\n");
|
||||
return &opd_26_ops;
|
Reference in New Issue
Block a user