summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/development/development.kconfig3
-rw-r--r--packages/development/development.mk3
-rw-r--r--packages/development/libelf/libelf.kconfig51
-rw-r--r--packages/development/libelf/libelf.mk (renamed from packages/misc/libelf/libelf.mk)17
-rw-r--r--packages/htools/hosttools-buildopts.kconfig2
-rw-r--r--packages/htools/hosttools-buildopts.mk3
-rw-r--r--packages/htools/libelf/libelf.kconfig42
-rw-r--r--packages/htools/libelf/libelf.mk37
-rw-r--r--packages/misc/libelf/libelf.kconfig53
9 files changed, 141 insertions, 70 deletions
diff --git a/packages/development/development.kconfig b/packages/development/development.kconfig
index 2bed20c..80c1e30 100644
--- a/packages/development/development.kconfig
+++ b/packages/development/development.kconfig
@@ -56,6 +56,9 @@ source packages/development/kyua-cli/kyua-cli.kconfig
# libbsd
source packages/development/libbsd/libbsd.kconfig
+# libelf
+source packages/development/libelf/libelf.kconfig
+
# libevent
source packages/development/libevent/libevent.kconfig
diff --git a/packages/development/development.mk b/packages/development/development.mk
index 673f7a7..89afb40 100644
--- a/packages/development/development.mk
+++ b/packages/development/development.mk
@@ -59,6 +59,9 @@ $(call embtk_include_pkg,kyua-cli)
# libbsd
$(call embtk_include_pkg,libbsd)
+# libelf
+$(call embtk_include_pkg,libelf)
+
# libevent
$(call embtk_include_pkg,libevent)
diff --git a/packages/development/libelf/libelf.kconfig b/packages/development/libelf/libelf.kconfig
new file mode 100644
index 0000000..58c443e
--- /dev/null
+++ b/packages/development/libelf/libelf.kconfig
@@ -0,0 +1,51 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2010-2014 GAYE Abdoulaye Walsimou.
+#
+# This program is free software; you can distribute it and/or modify it
+# under the terms of the GNU General Public License
+# (Version 2 or later) published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libelf.kconfig
+# \brief libelf.kconfig of Embtoolkit
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date January 2010
+################################################################################
+
+config EMBTK_HAVE_LIBELF
+ bool "Have libelf"
+ help
+ libelf lets you read, modify or create ELF files in an
+ architecture-independent way. The library takes care of size and endian
+ issues, e.g. you can process a file for SPARC processors on an
+ Intel-based system.
+
+choice
+ prompt "libelf version you wish"
+ depends on EMBTK_HAVE_LIBELF
+ help
+ Here you can choose which version of libelf you want to use.
+
+ config EMBTK_LIBELF_VERSION_0_8_13
+ bool "libelf-0.8.13"
+ select EMBTK_LIBELF_NEED_PATCH
+endchoice
+
+config EMBTK_LIBELF_VERSION_STRING
+ string
+ default "0.8.13" if EMBTK_LIBELF_VERSION_0_8_13
+
+config EMBTK_LIBELF_NEED_PATCH
+ bool
+config EMBTK_LIBELF_NEED_AUTORECONF
+ bool
diff --git a/packages/misc/libelf/libelf.mk b/packages/development/libelf/libelf.mk
index 71f25e9..bd62596 100644
--- a/packages/misc/libelf/libelf.mk
+++ b/packages/development/libelf/libelf.mk
@@ -1,6 +1,6 @@
################################################################################
# Embtoolkit
-# Copyright(C) 2010-2012 Abdoulaye Walsimou GAYE.
+# Copyright(C) 2010-2014 Abdoulaye Walsimou GAYE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -30,23 +30,8 @@ LIBELF_PACKAGE := libelf-$(LIBELF_VERSION).tar.gz
LIBELF_SRC_DIR := $(embtk_pkgb)/libelf-$(LIBELF_VERSION)
LIBELF_BUILD_DIR := $(embtk_pkgb)/libelf-$(LIBELF_VERSION)
-LIBELF_BINS :=
-LIBELF_SBINS :=
LIBELF_INCLUDES := libelf gelf.h libelf.h nlist.h
LIBELF_LIBS := libelf.a
LIBELF_PKGCONFIGS := libelf.pc
LIBELF_CONFIGURE_OPTS := --enable-elf64 --disable-nls
-
-#
-# libelf for host development machine
-#
-
-LIBELF_HOST_NAME := $(LIBELF_NAME)
-LIBELF_HOST_VERSION := $(LIBELF_VERSION)
-LIBELF_HOST_SITE := $(LIBELF_SITE)
-LIBELF_HOST_PACKAGE := $(LIBELF_PACKAGE)
-LIBELF_HOST_SRC_DIR := $(embtk_toolsb)/libelf-$(LIBELF_VERSION)
-LIBELF_HOST_BUILD_DIR := $(embtk_toolsb)/libelf-$(LIBELF_VERSION)
-
-LIBELF_HOST_CONFIGURE_OPTS := --enable-elf64 --disable-nls
diff --git a/packages/htools/hosttools-buildopts.kconfig b/packages/htools/hosttools-buildopts.kconfig
index 12a0d59..482b590 100644
--- a/packages/htools/hosttools-buildopts.kconfig
+++ b/packages/htools/hosttools-buildopts.kconfig
@@ -140,7 +140,7 @@ source packages/htools/fakeroot/fakeroot.kconfig
#
# libelf
#
-source packages/misc/libelf/libelf.kconfig
+source packages/htools/libelf/libelf.kconfig
#
# zlib for host
diff --git a/packages/htools/hosttools-buildopts.mk b/packages/htools/hosttools-buildopts.mk
index d82e7ed..c820883 100644
--- a/packages/htools/hosttools-buildopts.mk
+++ b/packages/htools/hosttools-buildopts.mk
@@ -44,6 +44,9 @@ $(call embtk_include_hostpkg,gmake_host)
# gsed
$(call embtk_include_hostpkg,gsed_host)
+# libelf
+$(call embtk_include_hostpkg,libelf_host)
+
# libtool
$(call embtk_include_hostpkg,libtool_host)
diff --git a/packages/htools/libelf/libelf.kconfig b/packages/htools/libelf/libelf.kconfig
new file mode 100644
index 0000000..4f2acac
--- /dev/null
+++ b/packages/htools/libelf/libelf.kconfig
@@ -0,0 +1,42 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2010-2014 GAYE Abdoulaye Walsimou.
+#
+# This program is free software; you can distribute it and/or modify it
+# under the terms of the GNU General Public License
+# (Version 2 or later) published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libelf.kconfig
+# \brief libelf.kconfig of Embtoolkit
+# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \date January 2010
+################################################################################
+
+config EMBTK_HOST_HAVE_LIBELF
+ bool
+ select EMBTK_LIBELF_HOST_NEED_PATCH
+ help
+ libelf lets you read, modify or create ELF files in an
+ architecture-independent way. The library takes care of size and
+ endian issues, e.g. you can process a file for SPARC processors on an
+ Intel-based system.
+
+config EMBTK_LIBELF_HOST_VERSION_STRING
+ string
+ depends on EMBTK_HOST_HAVE_LIBELF
+ default "0.8.13"
+
+config EMBTK_LIBELF_HOST_NEED_PATCH
+ bool
+config EMBTK_LIBELF_HOST_NEED_AUTORECONF
+ bool
diff --git a/packages/htools/libelf/libelf.mk b/packages/htools/libelf/libelf.mk
new file mode 100644
index 0000000..c280a02
--- /dev/null
+++ b/packages/htools/libelf/libelf.mk
@@ -0,0 +1,37 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2010-2014 Abdoulaye Walsimou GAYE.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file libelf.mk
+# \brief libelf.mk of Embtoolkit
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date January 2010
+################################################################################
+
+LIBELF_HOST_NAME := libelf
+LIBELF_HOST_VERSION := $(call embtk_get_pkgversion,libelf)
+LIBELF_HOST_SITE := http://www.mr511.de/software
+LIBELF_HOST_PACKAGE := libelf-$(LIBELF_HOST_VERSION).tar.gz
+LIBELF_HOST_SRC_DIR := $(embtk_toolsb)/libelf-$(LIBELF_HOST_VERSION)
+LIBELF_HOST_BUILD_DIR := $(embtk_toolsb)/libelf-$(LIBELF_HOST_VERSION)
+
+LIBELF_HOST_INCLUDES := libelf gelf.h libelf.h nlist.h
+LIBELF_HOST_LIBS := libelf.a
+LIBELF_HOST_PKGCONFIGS := libelf.pc
+
+LIBELF_HOST_CONFIGURE_OPTS := --enable-elf64 --disable-nls
diff --git a/packages/misc/libelf/libelf.kconfig b/packages/misc/libelf/libelf.kconfig
deleted file mode 100644
index 72d8d70..0000000
--- a/packages/misc/libelf/libelf.kconfig
+++ /dev/null
@@ -1,53 +0,0 @@
-################################################################################
-# Embtoolkit
-# Copyright(C) 2010-2012 GAYE Abdoulaye Walsimou.
-#
-# This program is free software; you can distribute it and/or modify it
-# under the terms of the GNU General Public License
-# (Version 2 or later) published by the Free Software Foundation.
-#
-# This program is distributed in the hope it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-# for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
-################################################################################
-#
-# \file libelf.kconfig
-# \brief libelf.kconfig of Embtoolkit
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
-# \date January 2010
-################################################################################
-
-config EMBTK_HOST_HAVE_LIBELF
- bool
- select EMBTK_LIBELF_HOST_NEED_PATCH
- help
- libelf for host development machine
-
-config EMBTK_HAVE_LIBELF
- bool
- select EMBTK_LIBELF_NEED_PATCH
- help
- libelf lets you read, modify or create ELF files in an
- architecture-independent way. The library takes care of size and
- endian issues, e.g. you can process a file for SPARC processors
- on an Intel-based system.
-
-config EMBTK_LIBELF_VERSION_STRING
- string
- depends on EMBTK_HOST_HAVE_LIBELF || EMBTK_HAVE_LIBELF
- default "0.8.13"
-
-config EMBTK_LIBELF_NEED_PATCH
- bool
-config EMBTK_LIBELF_NEED_AUTORECONF
- bool
-
-config EMBTK_LIBELF_HOST_NEED_PATCH
- bool
-config EMBTK_LIBELF_HOST_NEED_AUTORECONF
- bool