diff options
author | Alexey Neyman <stilor@att.net> | 2018-04-11 04:27:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-11 04:27:07 (GMT) |
commit | ffc638142d8bb5d70204047a7bd3bdd34b127d85 (patch) | |
tree | 317cf27c6163d608a3df30e15eecc540c7020ef4 /bootstrap | |
parent | 7c3422675909ea8b117f94a26170af06a265477e (diff) | |
parent | c4608f07f7e06a58d48d74b64296be663a94c604 (diff) |
Merge pull request #937 from stilor/build-autotoolize
Autotoolize crosstool-ng
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 36 |
1 files changed, 34 insertions, 2 deletions
@@ -738,7 +738,39 @@ gen_selection menu debug "Debug facilities" gen_selection menu comp_tools "Companion tools" gen_selection menu comp_libs "Companion libraries" -msg "*** Running autoconf" -autoconf -Wall --force +msg "*** Gathering the list of data files to install" +{ + declare -A seen_files + echo -n "verbatim_data =" + find config contrib packages samples scripts -type f | LANG=C sort | while read f; do + # Implement some kind of .installignore for these files? + case "${f}" in + # Skip certain files not needed at runtime (used above for generating kconfig + # fragments). + packages/*.help | packages/*.desc) + continue + ;; + # And, some file automake insists we must have + scripts/compile | scripts/missing | scripts/depcomp | scripts/ltmain.sh | scripts/install-sh) + continue + ;; + # Special hack for configure.in.in - replace with the file that configure + # will produce. FIXME: create this file at the time of 'ct-ng build'. + config/configure.in.in) + f=config/configure.in + ;; + esac + # Checks & substitutions above may result in duplicate files + if [ -n "${seen_files[${f}]}" ]; then + continue + fi + echo " \\" + echo -n " ${f}" + seen_files[${f}]=y + done +} > verbatim-data.mk + +msg "*** Running autoreconf" +autoreconf -Wall --force msg "*** Done!" |