From 778a4a5d80d79b1896a160c7c5885e1e5ecb5ee1 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Mon, 17 Mar 2014 00:08:29 +0100 Subject: Build system: mtd-utils: split it into mtdutils and mtdutils_host Signed-off-by: Abdoulaye Walsimou Gaye --- packages/htools/hosttools-buildopts.kconfig | 5 ++++ packages/htools/hosttools-buildopts.mk | 3 +++ packages/htools/mtdutils/mtdutils.kconfig | 40 +++++++++++++++++++++++++++ packages/htools/mtdutils/mtdutils.mk | 42 +++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 packages/htools/mtdutils/mtdutils.kconfig create mode 100644 packages/htools/mtdutils/mtdutils.mk (limited to 'packages/htools') diff --git a/packages/htools/hosttools-buildopts.kconfig b/packages/htools/hosttools-buildopts.kconfig index 1f7eced..ab16f6c 100644 --- a/packages/htools/hosttools-buildopts.kconfig +++ b/packages/htools/hosttools-buildopts.kconfig @@ -122,6 +122,11 @@ source kconfig/bmake.kconfig # source kconfig/gmake.kconfig +# +# mtd-utils +# +source packages/htools/mtdutils/mtdutils.kconfig + # # pkgconf # diff --git a/packages/htools/hosttools-buildopts.mk b/packages/htools/hosttools-buildopts.mk index 56df4f5..31527c4 100644 --- a/packages/htools/hosttools-buildopts.mk +++ b/packages/htools/hosttools-buildopts.mk @@ -32,6 +32,9 @@ $(call embtk_include_hostpkg,ccache_host) include packages/htools/fakeroot/vars.mk $(call embtk_include_hostpkg,fakeroot_host) +# mtd-utils +$(call embtk_include_hostpkg,mtdutils_host) + # pkgconf include packages/htools/pkgconf/vars.mk $(call embtk_include_hostpkg,pkgconf_host) diff --git a/packages/htools/mtdutils/mtdutils.kconfig b/packages/htools/mtdutils/mtdutils.kconfig new file mode 100644 index 0000000..59d96c3 --- /dev/null +++ b/packages/htools/mtdutils/mtdutils.kconfig @@ -0,0 +1,40 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 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 . +# +################################################################################ +# +# \file mtdutils.kconfig +# \brief mtdutils.kconfig of Embtoolkit. +# \author Abdoulaye Walsimou GAYE +# \date Marsh 2014 +################################################################################ + +config EMBTK_HOST_HAVE_MTDUTILS + bool + select EMBTK_HOST_HAVE_E2FSPROGS + select EMBTK_HOST_HAVE_ZLIB + select EMBTK_HOST_HAVE_LZO + select EMBTK_MTDUTILS_HOST_NEED_PATCH + help + mtd-utils intented to run on the host development machine. + +config EMBTK_MTDUTILS_HOST_VERSION_STRING + string + default "1.5.0" + +config EMBTK_MTDUTILS_HOST_NEED_PATCH + bool diff --git a/packages/htools/mtdutils/mtdutils.mk b/packages/htools/mtdutils/mtdutils.mk new file mode 100644 index 0000000..0cef6f4 --- /dev/null +++ b/packages/htools/mtdutils/mtdutils.mk @@ -0,0 +1,42 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 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 . +# +################################################################################ +# +# \file mtdutils.mk +# \brief mtd-utils for host +# \author Abdoulaye Walsimou GAYE +# \date Marsh 2014 +################################################################################ + +MTDUTILS_HOST_NAME := mtd-utils +MTDUTILS_HOST_VERSION := $(call embtk_get_pkgversion,mtdutils) +MTDUTILS_HOST_SITE := ftp://ftp.infradead.org/pub/mtd-utils +MTDUTILS_HOST_PACKAGE := mtd-utils-$(MTDUTILS_HOST_VERSION).tar.bz2 +MTDUTILS_HOST_SRC_DIR := $(embtk_toolsb)/mtd-utils-$(MTDUTILS_HOST_VERSION) +MTDUTILS_HOST_BUILD_DIR := $(embtk_toolsb)/mtd-utils-$(MTDUTILS_HOST_VERSION) + +MTDUTILS_HOST_DEPS := zlib_host_install lzo_host_install e2fsprogs_host_install + +MTDUTILS_HOST_MAKE_ENV := LDFLAGS="-L$(embtk_htools)/usr/lib" +MTDUTILS_HOST_MAKE_ENV += CPPFLAGS="-I. -Iinclude -I../include -I$(embtk_htools)/usr/include" +MTDUTILS_HOST_MAKE_ENV += BUILDDIR=$(MTDUTILS_HOST_BUILD_DIR) +MTDUTILS_HOST_MAKE_OPTS := DESTDIR=$(embtk_htools) WITHOUT_XATTR=1 + +define embtk_install_mtdutils_host + $(call embtk_makeinstall_hostpkg,mtdutils_host) +endef -- cgit v1.2.3