diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-01 14:39:02 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2012-12-01 14:39:02 +0100 |
commit | 399d8c625b399b5d4cd50c810ba07ec5351c6319 (patch) | |
tree | fc762f0b7b50e65417cff707c706311c344101a6 | |
parent | 1587de672a0d40bc97fb66da7009d0472244ccac (diff) | |
download | embtoolkit-399d8c625b399b5d4cd50c810ba07ec5351c6319.tar.gz embtoolkit-399d8c625b399b5d4cd50c810ba07ec5351c6319.tar.bz2 embtoolkit-399d8c625b399b5d4cd50c810ba07ec5351c6319.tar.xz |
Build system: internal macros: __embtk_fixgconfigsfor_pkg: take into account multiple scripts in packages
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r-- | mk/macros.packages.mk | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/mk/macros.packages.mk b/mk/macros.packages.mk index 8a787ea..0a1a322 100644 --- a/mk/macros.packages.mk +++ b/mk/macros.packages.mk @@ -261,15 +261,20 @@ __embtk_pkg_installed-y = $(shell \ # __embtk_gconfigsub := $(EMBTK_ROOT)/scripts/config.sub __embtk_gconfiguess := $(EMBTK_ROOT)/scripts/config.guess -__embtk_fixgconfigsfor_pkg = $(shell \ - sub="$$(find $(__embtk_pkg_srcdir)/ -type f -name config.sub)"; \ - if [ -n $$sub -a -e $$sub ]; then \ - ln -sf $(__embtk_gconfigsub) $$sub; \ - fi; \ - guess="$$(find $(__embtk_pkg_srcdir)/ -type f -name config.guess)"; \ - if [ -n $$guess -a -e $$guess ]; then \ - ln -sf $(__embtk_gconfiguess) $$guess; \ - fi) +define __embtk_fixgconfigsfor_pkg + subs="$$(find $(__embtk_pkg_srcdir)/ -type f -name config.sub)"; \ + for sub in $$subs; do \ + if [ -n $$sub -a -e $$sub ]; then \ + ln -sf $(__embtk_gconfigsub) $$sub; \ + fi; \ + done; \ + guesses="$$(find $(__embtk_pkg_srcdir)/ -type f -name config.guess)"; \ + for guess in $$guesses; do \ + if [ -n $$guess -a -e $$guess ]; then \ + ln -sf $(__embtk_gconfiguess) $$guess; \ + fi; \ + done; +endef # # A macro which runs configure script (conpatible with autotools configure) |