From dc75991cc4c23d2675aa357692ed26d7d21e569c Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 10 May 2014 15:02:18 +0200 Subject: Host tools: add waf in order to build waf base packages Signed-off-by: Abdoulaye Walsimou Gaye --- packages/htools/hosttools-buildopts.kconfig | 5 +++ packages/htools/hosttools-buildopts.mk | 4 +++ packages/htools/waf/vars.mk | 1 + packages/htools/waf/waf.kconfig | 31 +++++++++++++++++++ packages/htools/waf/waf.mk | 48 +++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+) create mode 100644 packages/htools/waf/vars.mk create mode 100644 packages/htools/waf/waf.kconfig create mode 100644 packages/htools/waf/waf.mk (limited to 'packages/htools') diff --git a/packages/htools/hosttools-buildopts.kconfig b/packages/htools/hosttools-buildopts.kconfig index 5dac98a..55194b5 100644 --- a/packages/htools/hosttools-buildopts.kconfig +++ b/packages/htools/hosttools-buildopts.kconfig @@ -142,6 +142,11 @@ source packages/htools/fakeroot/fakeroot.kconfig # source packages/misc/libelf/libelf.kconfig +# +# waf host tool +# +source packages/htools/waf/waf.kconfig + # # zlib for host # diff --git a/packages/htools/hosttools-buildopts.mk b/packages/htools/hosttools-buildopts.mk index cb66b4c..4e20bdb 100644 --- a/packages/htools/hosttools-buildopts.mk +++ b/packages/htools/hosttools-buildopts.mk @@ -42,6 +42,10 @@ $(call embtk_include_hostpkg,pkgconf_host) # squashfs $(call embtk_include_hostpkg,squashfs_host) +# waf +include packages/htools/waf/vars.mk +$(call embtk_include_hostpkg,waf_host) + # zlib $(call embtk_include_hostpkg,zlib_host) diff --git a/packages/htools/waf/vars.mk b/packages/htools/waf/vars.mk new file mode 100644 index 0000000..9c35d61 --- /dev/null +++ b/packages/htools/waf/vars.mk @@ -0,0 +1 @@ +embtk_waf := $(embtk_htools)/usr/bin/waf diff --git a/packages/htools/waf/waf.kconfig b/packages/htools/waf/waf.kconfig new file mode 100644 index 0000000..debdac7 --- /dev/null +++ b/packages/htools/waf/waf.kconfig @@ -0,0 +1,31 @@ +################################################################################ +# 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 waf.kconfig +# \brief waf.kconfig of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date May 2014 +################################################################################ + +config EMBTK_HOST_HAVE_WAF + bool + +config EMBTK_WAF_HOST_VERSION_STRING + string + default "1.7.16" diff --git a/packages/htools/waf/waf.mk b/packages/htools/waf/waf.mk new file mode 100644 index 0000000..bd92d1f --- /dev/null +++ b/packages/htools/waf/waf.mk @@ -0,0 +1,48 @@ +################################################################################ +# 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 waf.mk +# \brief waf.mk of Embtoolkit +# \author Abdoulaye Walsimou GAYE +# \date May 2014 +################################################################################ + +WAF_HOST_NAME := waf +WAF_HOST_VERSION := $(call embtk_get_pkgversion,waf_host) +WAF_HOST_SITE := http://ftp.waf.io/pub/release +WAF_HOST_PACKAGE := waf-$(WAF_HOST_VERSION) +WAF_HOST_SRC_DIR := $(embtk_toolsb)/waf-$(WAF_HOST_VERSION) +WAF_HOST_BUILD_DIR := $(embtk_toolsb)/waf-$(WAF_HOST_VERSION) + +define embtk_download_waf_host + [ -e $(embtk_dldir)/$(WAF_HOST_PACKAGE) ] || \ + $(call embtk_wget,$(WAF_HOST_PACKAGE),$(WAF_HOST_SITE)) +endef + +define embtk_install_waf_host + $(embtk_download_waf_host) + [ -e $(embtk_waf) ] || $(embtk_postinstallonce_waf_host) +endef + +define embtk_postinstallonce_waf_host + install -D -m 0755 $(embtk_dldir)/$(WAF_HOST_PACKAGE) $(embtk_waf) +endef + +download_waf_host waf_host_download: + $(embtk_download_waf_host) -- cgit v1.2.3