Add checksum support for downloaded files.

File download by http, ftp, pw support checksum. The %hash
directive provides a means of setting a hash used to
checksum the file.

Files on disk or just downloaded are checked.
This commit is contained in:
Chris Johns
2014-07-29 16:35:43 +10:00
parent c49e500042
commit a083b52921
28 changed files with 159 additions and 10 deletions

View File

@@ -20,6 +20,7 @@
# Add support for Cortex-M4 and Cortex-R based chips
#
%patch add gcc pw://patchwork.ozlabs.org/patch/372178/raw/v2-RTEMS-Add-multilibs-for-ARM.patch
%hash md5 v2-RTEMS-Add-multilibs-for-ARM.patch 2f3b5cf8db2a4c19f77752851ca10f6e
#
# Tools configuration.

View File

@@ -15,6 +15,7 @@
# Fix the simulator UART interface.
#
%patch add gdb %{rtems_gdb_patches}/lm32/gdb-sim-lm32uart.diff
%hash md5 gdb-sim-lm32uart.diff 77d070878112783292461bd6e7db17fb
#
# Tools configuration.
@@ -22,6 +23,6 @@
4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.24-1
tools/rtems-gcc-4.9.0-newlib-cvs-1
tools/rtems-gcc-4.9.1-newlib-cvs-1
tools/rtems-gdb-7.7-1
tools/rtems-kernel-4.11

View File

@@ -15,11 +15,13 @@
# GCC 4.7.2 Microblaze Patch
#
%patch add gcc %{rtems_gcc_patches}/microblaze/gcc-4.7.2-microblaze-ldscript-2.diff
%hash md5 gcc-4.7.2-microblaze-ldscript-2.diff a34f87dfa792193ade7f95e0b084a262
#
# GCC 4.8.2 Microblaze Patch for libgcc.
#
%patch add gcc %{rtems_gcc_patches}/microblaze/rtems-gcc-microblaze-libgcc-20131017.diff
%hash md5 rtems-gcc-microblaze-libgcc-20131017.diff 097186bb4c2c9a1970fe502aec30530f
#
# Tools configuration.

View File

@@ -17,6 +17,7 @@
# Add support for Cortex-M4 and Cortex-R based chips
#
%patch add gcc pw://patchwork.ozlabs.org/patch/364504/raw/RTEMS-Add-Nios-2-support.patch
%hash md5 RTEMS-Add-Nios-2-support.patch fd9bbc8482e69623214e2a4289e38d8f
#
# Tools configuration.

View File

@@ -15,6 +15,7 @@
# GDB patches
#
%patch add gdb %{rtems_gdb_patches}/sparc/gdb-7.7-sis-output-nouartrx.diff
%hash md5 gdb-7.7-sis-output-nouartrx.diff bc35b15de1325f3c4461ac3cda027bea
#
# Tools configuration.

View File

@@ -13,6 +13,8 @@
#
%define net_snmp_version 5.7.2.1
%hash md5 net-snmp-%{net_snmp_version}.tar.gz 7db683faba037249837b226f64d566d4
#
# We need some special flags to build this version.
#
@@ -22,6 +24,7 @@
# Patch for RTEMS support.
#
%patch add net-snmp %{rtems_git_tools}/net-snmp/rtems-net-snmp-5.7.2.1-20140623.patch
%hash md5 rtems-net-snmp-5.7.2.1-20140623.patch 9a22fb4366a113f5df71ed2acd672b2b
#
# NetSNMP Build configuration

View File

@@ -13,10 +13,13 @@
#
%define ntp_version 4.2.6p5
%hash md5 ntp-%{ntp_version}.tar.gz 00df80a84ec9528fcfb09498075525bc
#
# Patch for RTEMS support.
#
%patch add ntp %{rtems_git_tools}/ntp/rtems-ntp-4.2.6p5.diff
%hash md5 rtems-ntp-4.2.6p5.diff 6fce685a73873f924a48b19d6b1700fc
#
# NTP Build configuration

View File

@@ -8,6 +8,8 @@
%define rtems_autoconf_version 2.69
%hash md5 autoconf-%{rtems_autoconf_version}.tar.gz 82d05e03b93e45f5a39b828dc9c6c29b
#
# Check the version of autoconf in the path.
#

View File

@@ -8,6 +8,8 @@
%define rtems_automake_version 1.12.6
%hash md5 automake-%{rtems_automake_version}.tar.gz 199d39ece2e6070d64ac20d45ac86026
#
# Check the version of automake in the path.
#

View File

@@ -7,6 +7,8 @@
%define binutils_version 2.24
%hash md5 binutils-%{binutils_version}.tar.bz2 e0f71a7b2ddab0f8612336ac81d9636b
#
# Enable deterministic archives by default. This will be the default
# there all tools using this binutils will create deterministic

View File

@@ -25,6 +25,13 @@
%define with_iconv 1
%endif
#
# Hash checksums of the libraries used in GCC.
#
%hash md5 mpfr-%{mpfr_version}.tar.bz2 bfbecb2eacb6d48432ead5cfc3f7390a
%hash md5 mpc-%{mpc_version}.tar.gz e98267ebd5648a39f881d66797122fb6
%hash md5 gmp-%{gmp_version}.tar.bz2 041487d25e9c230b0c42b106361055fe
#
# Newlib is from CVS.
#
@@ -34,6 +41,7 @@
# Joel's stack_t patch.
#
%patch add newlib -p0 %{rtems_newlib_patches}/newlib-sys-signal-20130532.diff
%hash md5 newlib-sys-signal-20130532.diff 34af05f28a4921e47c053528f5a8b9fb
#
# The gcc/newlib build instructions. We use 4.8 Release 1.

View File

@@ -19,10 +19,20 @@
%define with_iconv 1
%endif
#
# Hash checksums.
#
%hash md5 mpfr-%{mpfr_version}.tar.bz2 bfbecb2eacb6d48432ead5cfc3f7390a
%hash md5 mpc-%{mpc_version}.tar.gz e98267ebd5648a39f881d66797122fb6
%hash md5 gmp-%{gmp_version}.tar.bz2 041487d25e9c230b0c42b106361055fe
%hash md5 gcc-%{gcc_version}.tar.bz2 a3d7d63b9cb6b6ea049469a0c4a43c9d
%hash md5 newlib-%{newlib_version}.tar.gz c6559d83ecce4728a52f0ce7ec80de97
#
# Joel's stack_t patch.
#
%patch add newlib -p0 %{rtems_newlib_patches}/newlib-sys-signal-20130532.diff
%hash md5 newlib-sys-signal-20130532.diff 34af05f28a4921e47c053528f5a8b9fb
# The gcc/newlib build instructions. We use 4.8 Release 1.
#

View File

@@ -5,6 +5,8 @@
%define gcc_version 4.8.2
%define newlib_version 12-Jul-2014
%hash md5 gcc-%{gcc_version}.tar.bz2 a3d7d63b9cb6b6ea049469a0c4a43c9d
#
# The gcc/newlib build instructions.
#

View File

@@ -5,6 +5,8 @@
%define gcc_version 4.8.3
%define newlib_version 26-Jul-2014
%hash md5 gcc-%{gcc_version}.tar.bz2 7c60f24fab389f77af203d2516ee110f
#
# The gcc/newlib build instructions.
#

View File

@@ -26,7 +26,14 @@
%endif
#
# Newlib is from CVS.
# Hash checksums of the libraries used in GCC.
#
%hash md5 mpfr-%{mpfr_version}.tar.bz2 bfbecb2eacb6d48432ead5cfc3f7390a
%hash md5 mpc-%{mpc_version}.tar.gz e98267ebd5648a39f881d66797122fb6
%hash md5 gmp-%{gmp_version}.tar.bz2 041487d25e9c230b0c42b106361055fe
#
# Newlib is from CVS. No hash on CVS.
#
%source set newlib cvs://pserver:anoncvs@sourceware.org/cvs/src?module=newlib?src-prefix=src?date=%{newlib_version}?reset
@@ -34,6 +41,7 @@
# Joel's stack_t patch.
#
%patch add newlib -p0 %{rtems_newlib_patches}/newlib-sys-signal-20130532.diff
%hash md5 newlib-sys-signal-20130532.diff 34af05f28a4921e47c053528f5a8b9fb
#
# The gcc/newlib build instructions. We use 4.9 Release 1.

View File

@@ -19,10 +19,20 @@
%define with_iconv 1
%endif
#
# Hash checksums.
#
%hash md5 mpfr-%{mpfr_version}.tar.bz2 bfbecb2eacb6d48432ead5cfc3f7390a
%hash md5 mpc-%{mpc_version}.tar.gz e98267ebd5648a39f881d66797122fb6
%hash md5 gmp-%{gmp_version}.tar.bz2 041487d25e9c230b0c42b106361055fe
%hash md5 gcc-%{gcc_version}.tar.bz2 9709b49ae0e904cbb0a6a1b62853b556
%hash md5 newlib-%{newlib_version}.tar.gz c6559d83ecce4728a52f0ce7ec80de97
#
# Joel's stack_t patch.
#
%patch add newlib -p0 %{rtems_newlib_patches}/newlib-sys-signal-20130532.diff
%hash md5 newlib-sys-signal-20130532.diff 34af05f28a4921e47c053528f5a8b9fb
#
# The gcc/newlib build instructions. We use 4.9 Release 1.

View File

@@ -5,6 +5,8 @@
%define gcc_version 4.9.1
%define newlib_version 26-Jul-2014
%hash md5 gcc-%{gcc_version}.tar.bz2 fddf71348546af523353bd43d34919c1
#
# The gcc/newlib build instructions.
#

View File

@@ -7,14 +7,19 @@
%define gdb_version 7.7
%hash md5 gdb-%{gdb_version}.tar.bz2 271a18f41858a7e98b28ae4eb91287c9
#
# Clean up the sim-arange inline code so it builds.
#
%patch add gdb %{rtems_gdb_patches}/gdb-sim-arange-inline.diff
%hash md5 gdb-sim-arange-inline.diff 11bb2936ea29afeaa023077191fd4705
%patch add gdb %{rtems_gdb_patches}/gdb-sim-cgen-inline.diff
%hash md5 gdb-sim-cgen-inline.diff e6f7d6d7295cdba99f51aab514ea9778
%if %{_build_os} == freebsd
%patch add gdb -p0 %{rtems_gdb_patches}/patch-gdb-python-python-config.py
%hash md5 patch-gdb-python-python-config.py c0260fcca4c1a5509635049c0094eee3
%endif
#

View File

@@ -11,10 +11,13 @@
# Clean up the sim-arange inline code so it builds.
#
%patch add gdb %{rtems_gdb_patches}/gdb-sim-arange-inline.diff
%hash md5 gdb-sim-arange-inline.diff 11bb2936ea29afeaa023077191fd4705
%patch add gdb %{rtems_gdb_patches}/gdb-sim-cgen-inline.diff
%hash md5 gdb-sim-cgen-inline.diff e6f7d6d7295cdba99f51aab514ea9778
%if %{_build_os} == freebsd
%patch add gdb -p0 %{rtems_gdb_patches}/patch-gdb-python-python-config.py
%hash md5 patch-gdb-python-python-config.py c0260fcca4c1a5509635049c0094eee3
%endif
#

View File

@@ -16,7 +16,9 @@
# Source
#
%source set binutils http://ftp.rtems.org/ftp/pub/rtems/people/chrisj/nios/nios2-binutils-2.20.tar.bz2
%hash md5 nios2-binutils-2.20.tar.bz2 42ce11b421a1d35fc7b17ee051ccf92a
%patch add binutils %{rtems_binutils_patches}/nios2/nios2-binutils-2.20-rtems-20110703.diff
%hash md5 nios2-binutils-2.20-rtems-20110703.diff edaa78cdf7b87866c976232ccb1704ac
#
# The binutils build instructions. We use 2.xx Release 1.

View File

@@ -42,11 +42,13 @@ BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
# GCC core and G++
#
%source set gcc http://ftp.rtems.org/ftp/pub/rtems/people/chrisj/nios/nios2-gcc-4.1.tar.bz2
%hash md5 nios2-gcc-4.1.tar.bz2 717e5a25fda68d96d09353bcfa149cff
#
# Newlib
#
%source set newlib ftp://sourceware.org/pub/newlib/newlib-%{newlib_version}.tar.gz
%hash md5 newlib-%{newlib_version}.tar.gz 0966e19f03217db9e9076894b47e6601
#
# The GCC library directory