From c8a68d987b4332bc57e8fe9e75ad7d5d4297d880 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 14 Oct 2008 21:30:27 +0000 Subject: Introduce the notion of a 'sample comment'. - 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(-) --- samples/arm-unknown-eabi/reported.by | 0 samples/arm-unknown-elf/reported.by | 0 samples/arm-unknown-linux-uclibc/reported.by | 0 .../arm-unknown-linux-uclibcgnueabi/reported.by | 0 samples/armeb-unknown-linux-gnu/reported.by | 0 samples/armeb-unknown-linux-gnueabi/reported.by | 0 samples/armeb-unknown-linux-uclibc/reported.by | 0 .../armeb-unknown-linux-uclibcgnueabi/reported.by | 0 samples/i586-geode-linux-uclibc/reported.by | 0 samples/i686-nptl-linux-gnu/reported.by | 0 samples/ia64-unknown-linux-gnu/reported.by | 0 samples/mips-unknown-linux-uclibc/reported.by | 0 samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 +++++++++++++++ samples/samples.mk | 22 +++++++++++++++++----- samples/x86_64-unknown-linux-uclibc/reported.by | 0 15 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 samples/arm-unknown-eabi/reported.by create mode 100644 samples/arm-unknown-elf/reported.by create mode 100644 samples/arm-unknown-linux-uclibc/reported.by create mode 100644 samples/arm-unknown-linux-uclibcgnueabi/reported.by create mode 100644 samples/armeb-unknown-linux-gnu/reported.by create mode 100644 samples/armeb-unknown-linux-gnueabi/reported.by create mode 100644 samples/armeb-unknown-linux-uclibc/reported.by create mode 100644 samples/armeb-unknown-linux-uclibcgnueabi/reported.by create mode 100644 samples/i586-geode-linux-uclibc/reported.by create mode 100644 samples/i686-nptl-linux-gnu/reported.by create mode 100644 samples/ia64-unknown-linux-gnu/reported.by create mode 100644 samples/mips-unknown-linux-uclibc/reported.by create mode 100644 samples/x86_64-unknown-linux-uclibc/reported.by (limited to 'samples') diff --git a/samples/arm-unknown-eabi/reported.by b/samples/arm-unknown-eabi/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/arm-unknown-elf/reported.by b/samples/arm-unknown-elf/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/arm-unknown-linux-uclibc/reported.by b/samples/arm-unknown-linux-uclibc/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/arm-unknown-linux-uclibcgnueabi/reported.by b/samples/arm-unknown-linux-uclibcgnueabi/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/armeb-unknown-linux-gnu/reported.by b/samples/armeb-unknown-linux-gnu/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/armeb-unknown-linux-gnueabi/reported.by b/samples/armeb-unknown-linux-gnueabi/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/armeb-unknown-linux-uclibc/reported.by b/samples/armeb-unknown-linux-uclibc/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/armeb-unknown-linux-uclibcgnueabi/reported.by b/samples/armeb-unknown-linux-uclibcgnueabi/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/i586-geode-linux-uclibc/reported.by b/samples/i586-geode-linux-uclibc/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/i686-nptl-linux-gnu/reported.by b/samples/i686-nptl-linux-gnu/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/ia64-unknown-linux-gnu/reported.by b/samples/ia64-unknown-linux-gnu/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/mips-unknown-linux-uclibc/reported.by b/samples/mips-unknown-linux-uclibc/reported.by new file mode 100644 index 00000000..e69de29b diff --git a/samples/powerpc-e500v2-linux-gnuspe/reported.by b/samples/powerpc-e500v2-linux-gnuspe/reported.by index acce50e8..ba468c0a 100644 --- a/samples/powerpc-e500v2-linux-gnuspe/reported.by +++ b/samples/powerpc-e500v2-linux-gnuspe/reported.by @@ -1,2 +1,17 @@ reporter_name="Nate CASE" reporter_url="http://sourceware.org/ml/crossgcc/2008-10/msg00016.html" +reporter_comment="This is a sample config file for Freescale e500v2 processors (e.g., +MPC8548, MPC8572). It uses eglibc (for e500/SPE patches) and a recent +gcc (4.3.1, for e500v2 DPFP support) and will generate appropriate +dual-precision floating point instructions by default. + +Note: If building a Linux kernel with this toolchain, you will want to +make sure -mno-spe AND -mspe=no are passed to gcc to prevent SPE +ABI/instructions from getting into the kernel (which is currently +unsupported). At this time, the kernel build system only passes +-mno-spe by default (this should be fixed soon hopefully). + +A binutils snapshot is used to fix a bug present in 2.18 preventing +U-Boot from being compiled (CodeSourcery issue #2297: internal.h +(ELF_IS_SECTION_IN_SEGMENT): Adjust to cope with segments at the end of +memory)." diff --git a/samples/samples.mk b/samples/samples.mk index fc0581f7..5ea72764 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -35,18 +35,30 @@ PHONY += $(CT_SAMPLES) $(CT_SAMPLES): @cp $(call sample_dir,$@)/crosstool.config .config @$(MAKE) -rf $(CT_NG) oldconfig + @echo + @echo '***********************************************************' + @echo + @( . $(call sample_dir,$@)/reported.by; \ + echo "Initially reported by: $${reporter_name:-Yann E. MORIN}"; \ + echo "URL: $${reporter_url:-http://ymorin.is-a-geek.org/}"; \ + if [ -n "$${reporter_comment}" ]; then \ + echo ; \ + echo "Comment:"; \ + printf "$${reporter_comment}\n"; \ + fi; \ + echo ; \ + echo '***********************************************************'; \ + ) @if grep -E '^CT_EXPERIMENTAL=y$$' .config >/dev/null 2>&1; then \ - echo ''; \ - echo '***********************************************************'; \ - echo ''; \ + echo ; \ echo 'WARNING! This sample may enable experimental features.'; \ echo ' Please be sure to review the configuration prior'; \ echo ' to building and using your toolchain!'; \ echo 'Now, you have been warned!'; \ - echo ''; \ + echo ; \ echo '***********************************************************'; \ - echo ''; \ fi + @echo @echo 'Now configured for "$@"' # The 'sample_dir' function prints the directory in which the sample is, diff --git a/samples/x86_64-unknown-linux-uclibc/reported.by b/samples/x86_64-unknown-linux-uclibc/reported.by new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3