summaryrefslogtreecommitdiff
path: root/samples/samples.mk
AgeCommit message (Collapse)AuthorFilesLines
2022-02-11Upgrade script for uClibc retirementAlexey Neyman1-1/+1
Run samples through upgrade and fix accumulated breakages: *-centos6-*: After 2.12.2 retirement, the samples selected most recent glibc (2.34) which also forced kernels 3.2+. Revert to 2.12.1 and 2.6.32.71, respectively. Interestingly, 2.12.1 was marked as being used in CentOS6, but the samples selected 2.12.2. Anyway, CentOS6 is EOL now and glibc 2.12 is going to be marked obsolete, and retired soon. arc-*: Make TARGET_VENDOR match the sample's name; otherwise `ct-ng saveconfig` places the config file into a different location. Fix 'savedefconfig' which was not saving the configuration file version (CT_VCHECK was set to 'load' after CT_LoadConfig call). Signed-off-by: Alexey Neyman <stilor@att.net>
2019-02-09Use enhanced framework for 'ct-ng update-samples'Alexey Neyman1-10/+12
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-28Add upgrade logic to version-check.shAlexey Neyman1-5/+1
Slightly rework config version detector to catch the case where neither CONFIG_VERSION/CONFIG_VERSION_CURRENT is defined in the config file. Add olddefconfig and use it after the upgrade. Signed-off-by: Alexey Neyman <stilor@att.net>
2019-01-26Basic framework for checking config file versionAlexey Neyman1-17/+28
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-11-02Check if .config is a regular file before clobbering itAlexey Neyman1-1/+1
Fixes #1014. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-11Merge pull request #924 from tofutim/feature/fixchecksampsAlexey Neyman1-1/+1
fix deprecated diff option
2018-04-07User manual installationAlexey Neyman1-0/+1
... when running from a release tarball. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-02-28fix deprecated diff optionTim Uy1-1/+1
2017-11-20Align script names with the ct-ng commandsAlexey Neyman1-5/+5
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-11-20Retire wiki-printerAlexey Neyman1-17/+0
It is not used anymore and is currently broken. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-08Fix debuild warnings/errorsAlexey Neyman1-7/+7
- Update .gitignore, do not place .gitignore into directories installed in bulk - Remove executable permissions and shebangs from the scripts that are supposed to be invoked only via ct-ng frontent; prepend them with $(bash). Despite what showSamples.sh said, it already has some bashisms. - Remove --with autotools-dev and override dh_update_autotools_config to avoid having config.{sub,guess} clobbered with older versions - Install bash completion where Debian (now) expects it - Update man page to use .\" as the comment delimiter, instead of undefined macro (."); also, minor text edits. - Install kconfig.mk without execute permission. - Remove shell wrappers from 170-localedef-fix-trampoline.patch, we do not use that for applying patches - Revoke execute permissions on 210-expat.sh - Get flags from dpkg-buildflags if available Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-23Use config from the install locationAlexey Neyman1-7/+7
... no need to create a local symlink. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-20Make build-all rely on kconfig options.Alexey Neyman1-18/+11
For that, make CT_BUILD_TOP_DIR a non-settable config option (so that it is recursively expanded with CT_HOST/CT_TARGET). Use a common prefix, with same default as for regular sample build. Use showConfig.sh to determine host toolchain path (for canadian crosses) and build directory to be removed. Remove LIBC_SYSROOT_ARG (unused). Signed-off-by: Alexey Neyman <stilor@att.net>
2016-08-23build-all: Remove successful build trees.Alexey Neyman1-1/+3
I am running out of space when running build-all for all samples. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-17Document {check,update}-samples targets.Alexey Neyman1-0/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14Use $* to simplify rules in samples.mk.Alexey Neyman1-9/+9
Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-14Add update-samples target.Alexey Neyman1-6/+18
Same as check-samples, but actually updates the crosstool.config. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-11-04Merge pull request #233 from stilor/fix-build-allBryan Hundven1-14/+60
Fix build-all
2015-10-30Fix samples using GMP 4.3.2.Alexey Neyman1-4/+4
Some older versions of configure (including the one in GMP 4.3.2) interpret the $ECHO environment variable as the `echo' utility to use. CT-NG sets the variable to `:' and exports it if V=0 or V=1 is supplied, breaking the samples using such configure. This currently includes bfin-unknown-linux-uclibc and powerpc-unknown-linux-uclibc. Also, correct the description of the V= variable - V=0 is *not* the default; in fact, default does not correspond to any of the V=[012] values. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Do not stop build-all after a failed sample.Alexey Neyman1-3/+31
Instead, continue until the end and provide a summary (PASS/XFAIL/FAIL) at the end. If there are any FAILs, exit with code 1. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Order the samples in build-all.Alexey Neyman1-3/+13
First, build cross samples (indicated by lack of comma in their names); then, build canadian cross samples (and, when they are supported, cross-native). While building canadian cross, set up the path to the build-to-host cross if it was built previously. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Avoid commas in autogenerated CT_PREFIX_DIR.Alexey Neyman1-5/+12
Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Make build-all non-interactive.Alexey Neyman1-3/+4
'make oldconfig' results in asking the user about options not explicitly set in the defconfig. Instead of copying, run 'conf --defconfig', as in the normal sample's build sequence. Also, invoke 'conf --oldconfig' directly, with a -s option, to avoid spamming with useless "configuration written to .config" messages. Signed-off-by: Alexey Neyman <stilor@att.net>
2015-10-30Change sed monstrosity into a make variable.Alexey Neyman1-1/+1
The convoluted sed expression was doing what is already available in make as `$*'. Signed-off-by: Alexey Neyman <stilor@att.net>
2014-06-25all: fix wildcard to work with make-4.xYann E. MORIN"1-2/+2
In make-3.8x, the $(wildacrd) function would sort the entries, while in make-4.x, it would just return the entries in any unpredictable order [*] Use the $(sort) function to get reproducible behaviour. [*] Well, most probably the roder the entries appear when read from readdir() Reported-by: Andrew Ruder <andrew.ruder@elecsyscorp.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: Andrew Ruder <andrew.ruder@elecsyscorp.com>
2013-01-24samples: print changed symbols when checking samplesYann E. MORIN"1-1/+2
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2013-01-21samples: check if update is neededYann E. MORIN"1-0/+16
Add a ct-ng action to check if samples needs being updated. This will be usefull when the config options change. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-07-23scripts+samples: fix listings the samplesYann E. MORIN"1-6/+33
Since we use defconfigs to save the samples, listing all the samples can no longer be done by passing all the sample names at one to the script; we need to pass them one-by-one after we expand the sample's defconfig ibnto a complete .config. Reported-by: Bryan Hundven <bryanhundven@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-07samples: rework show-tupleYann E. MORIN"1-3/+8
Now that we are using defconfig files, the samples do not contain the full configuration, so we can not simply parse them to show their content. Instead, we must fake recalling a sample, and parse the generated .config file. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-05-06samples: use savedefconfig when saving samplesYann E. MORIN"1-3/+3
When saving a sample, use savedefconfig instead of copying the full .config file. This reduces the saved .config, and reduces clutter when it is later upgraded. Also use defconfig when retrieving a sample. Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2011-10-18misc: change references to point to the new websiteYann E. MORIN"1-2/+2
It's been a while now that crosstool-NG has been hosted on it's own website, and not at my home. Change every reference to the old site to the new one, everywhere is makes sense to. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-10-16scripts: do not force locale when sorting samplesYann E. MORIN"1-4/+4
Just use whatever the user has set in his/her environment. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2010-07-30samples: add a short list of all samplesYann E. MORIN"1-0/+7
Add an action to list only the sample names. Use that for auto-completion.
2010-04-01scripts: misc help and auto-complete fixesYann E. MORIN"1-8/+5
- don't list samples in the main help screen - improve the samples listing in list-samples - don't document the 'config' action, it's long dead - document the 'V' environment variable - improve on START, STOP and PREFIX environment variables - add PREFIX and V to autocomplete - advertise auto-complete at install time
2010-02-02scripts/samples: use the computed '$(sed)', not 'sed'Titus von Boxberg"1-3/+3
2010-01-31scripts: dump the current tuple with show-configYann E. MORIN"1-1/+2
2010-01-31scripts: add action to dump current configuration in humane-readable formYann E. MORIN"1-0/+5
2010-01-03samples: refine the listing of all samples for canadian samplesYann E. MORIN"1-1/+1
For canadian samples, display the sample as: target-tuple (host: host-tuple)
2010-01-03samples: add an action to print details for all samplesYann E. MORIN"1-0/+4
2010-01-03samples: fix displaying samplesYann E. MORIN"1-2/+7
2009-10-30scripts: some eye-candyYann E. MORIN"1-1/+6
2009-10-30scripts: fix updating config.{sub,guess}Yann E. MORIN"1-1/+1
2009-01-27Fix white space damage after switching to using paths found by ./configure.Yann E. MORIN"1-1/+1
/trunk/samples/samples.mk | 2 1 1 0 /trunk/config/config.mk | 104 52 52 0 ++++++++++++++++++++++++++-------------------------- 2 files changed, 53 insertions(+), 53 deletions(-)
2009-01-26Use the paths found by ./configure in the ct-ng.in makefile script and its ↵Yann E. MORIN"1-9/+9
fragments. /trunk/kconfig/kconfig.mk | 2 1 1 0 +- /trunk/samples/samples.mk | 18 9 9 0 +++++++++--------- /trunk/config/config.mk | 10 5 5 0 +++++----- /trunk/ct-ng.in | 22 13 9 0 +++++++++++++--------- 4 files changed, 28 insertions(+), 24 deletions(-)
2008-11-21Be less verbose when a sample is directly built with build-sample-name.Yann E. MORIN"1-4/+3
/trunk/samples/samples.mk | 7 3 4 0 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
2008-10-31Remove regtest actions, introduce build-all actions:Yann E. MORIN"1-47/+53
- regtest was not easy to use - one may wish to simply build all samples - introduce a per-sample automatic build /trunk/docs/overview.txt | 19 14 5 0 ++++++++--- /trunk/samples/samples.mk | 92 49 43 0 ++++++++++++++++++++++++++++------------------------- /trunk/ct-ng.comp | 8 5 3 0 +++-- 3 files changed, 68 insertions(+), 51 deletions(-)
2008-10-27Enhance the make fragments:Yann E. MORIN"1-13/+28
- comment the different parts - re-order the code so that it is homogeneous amogst fragments - eye-candy in some existing comments /trunk/tools/tools.mk | 17 15 2 0 +++++++++++++++-- /trunk/steps.mk | 38 26 12 0 ++++++++++++++++++++++++++------------ /trunk/samples/samples.mk | 41 28 13 0 ++++++++++++++++++++++++++++------------- /trunk/config/config.mk | 2 1 1 0 +- 4 files changed, 70 insertions(+), 28 deletions(-)
2008-10-15Cheesy kconfig stuff:Yann E. MORIN"1-15/+15
- silent/quiet/verbose build: - ct-ng by default only prints quit messages, such as "CC xxx", - if using V=0, nothing is printed, - if using V=1, the full command lines are printed, - other values are indeterminate, - should help in debugging the kconfig stuff; - complete kconfig/{,m}conf generation: - fully dynamic dependencies on source files, - compilation of .c into .o, then linking (instead of direct linking), - VPATH usage when not --local; Typo + a coment moved. /trunk/kconfig/kconfig.mk | 140 87 53 0 +++++++++++++++++++++++++++++++++-------------------- /trunk/tools/tools.mk | 12 6 6 0 ++-- /trunk/steps.mk | 6 3 3 0 +- /trunk/samples/samples.mk | 30 15 15 0 +++++----- /trunk/ct-ng.in | 40 28 12 0 +++++++++++---- 5 files changed, 139 insertions(+), 89 deletions(-)
2008-10-14Introduce the notion of a 'sample comment'.Yann E. MORIN"1-5/+17
- presence of the sample's reported.by file is now mandatory. - when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file. - when saving a sample, one can store a few-liner comment. - when recalling a sample, the reporter name, URL and comment (if present) are printed. - update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail). - update all samples that were missing the reported.by file. /trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------ /trunk/scripts/showSamples.sh | 12 6 6 0 +++--- /trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++ /trunk/samples/samples.mk | 22 17 5 0 +++++++++-- 4 files changed, 73 insertions(+), 22 deletions(-)
2008-10-14Use a function to retrieve a sample directory.Yann E. MORIN"1-10/+9
/trunk/samples/samples.mk | 19 9 10 0 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)