diff options
| author | Alejandro Hernandez Samaniego <alejandro@enedino.org> | 2023-01-27 12:43:30 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-29 19:24:22 +0000 |
| commit | f3ad36d15ccb88f89cb0621593b69b63b47a5358 (patch) | |
| tree | 641493cf0c95a790b9bc06f95794bbb94b118ff4 /meta/recipes-core/newlib/libgloss | |
| parent | fa4cd1a7a20615c228a5556e135ddf791d28b8a0 (diff) | |
| download | poky-f3ad36d15ccb88f89cb0621593b69b63b47a5358.tar.gz | |
newlib: Upgrade 4.2.0 -> 4.3.0
- Rebased fix-rs6000-crt0.patch
- Patch fix_makefile_include_arm_h.patch is no longer required, the newlib
header dependency has been fixed upstream at 26f9cfd7
- LICENSE checksum change due to:
- Adding SPDX identifier
- Deleted Phoenix Systems from License and updated each licenses
numbers accordingly.
- Add a dummy limits.h header, to make the improved preprocessor
checks happy during configure.
- Add a patch for libgloss to maintain current behavior of TCLIBC=newlib
by making libgloss DEPEND on newlib and use its installed headers.
- Switch to git fetcher to simplify fetching the sources and avoid future
issues due to the way newlib release snapshots were being published.
(From OE-Core rev: 1c9cbb27dfe37ca4574c4285fb03ce394dee5ed1)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/newlib/libgloss')
| -rw-r--r-- | meta/recipes-core/newlib/libgloss/fix-rs6000-crt0.patch | 24 | ||||
| -rw-r--r-- | meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch | 30 |
2 files changed, 45 insertions, 9 deletions
diff --git a/meta/recipes-core/newlib/libgloss/fix-rs6000-crt0.patch b/meta/recipes-core/newlib/libgloss/fix-rs6000-crt0.patch index c220fb8437..8c29fea8cf 100644 --- a/meta/recipes-core/newlib/libgloss/fix-rs6000-crt0.patch +++ b/meta/recipes-core/newlib/libgloss/fix-rs6000-crt0.patch | |||
| @@ -5,35 +5,41 @@ name for crt0 in specific, so performing all of them results in an error during | |||
| 5 | do_install, we simply modify the name of the objects so the installation can proceed | 5 | do_install, we simply modify the name of the objects so the installation can proceed |
| 6 | and leave it to the user to select which object files to use. | 6 | and leave it to the user to select which object files to use. |
| 7 | 7 | ||
| 8 | Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> | ||
| 9 | 8 | ||
| 10 | Index: newlib-3.0.0/libgloss/rs6000/Makefile.in | 9 | 01/2023: Rebased for libgloss 4.3.0 |
| 10 | |||
| 11 | Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> | ||
| 12 | |||
| 13 | |||
| 14 | Index: git/libgloss/rs6000/Makefile.in | ||
| 11 | =================================================================== | 15 | =================================================================== |
| 12 | --- newlib-3.0.0.orig/libgloss/rs6000/Makefile.in | 16 | --- git.orig/libgloss/rs6000/Makefile.in |
| 13 | +++ newlib-3.0.0/libgloss/rs6000/Makefile.in | 17 | +++ git/libgloss/rs6000/Makefile.in |
| 14 | @@ -358,7 +358,7 @@ install-sim: | 18 | @@ -362,7 +362,7 @@ install-sim: |
| 15 | set -e; for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | ||
| 16 | 19 | ||
| 17 | install-mvme: | 20 | install-mvme: |
| 21 | ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR} | ||
| 18 | - set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 22 | - set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done |
| 19 | + set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/mvme-$$x; done | 23 | + set -e; for x in ${MVME_CRT0} ${MVME_BSP} ${MVME_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/mvme-$$x; done |
| 20 | 24 | ||
| 21 | install-solaris: | 25 | install-solaris: |
| 22 | set -e; for x in ${SOLARIS_CRT0} ${SOLARIS_BSP} ${SOLARIS_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 26 | ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR} |
| 23 | @@ -367,15 +367,15 @@ install-linux: | 27 | @@ -374,17 +374,17 @@ install-linux: |
| 24 | set -e; for x in ${LINUX_CRT0} ${LINUX_BSP} ${LINUX_SCRIPTS}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | ||
| 25 | 28 | ||
| 26 | install-yellowknife: | 29 | install-yellowknife: |
| 30 | ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR} | ||
| 27 | - set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 31 | - set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done |
| 28 | + set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/yellowknife-$$x; done | 32 | + set -e; for x in ${YELLOWKNIFE_CRT0} ${YELLOWKNIFE_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/yellowknife-$$x; done |
| 29 | set -e; for x in ${YELLOWKNIFE_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 33 | set -e; for x in ${YELLOWKNIFE_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done |
| 30 | 34 | ||
| 31 | install-ads: | 35 | install-ads: |
| 36 | ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR} | ||
| 32 | - set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 37 | - set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done |
| 33 | + set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/ads-$$x; done | 38 | + set -e; for x in ${ADS_CRT0} ${ADS_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/ads-$$x; done |
| 34 | set -e; for x in ${ADS_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 39 | set -e; for x in ${ADS_SCRIPTS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done |
| 35 | 40 | ||
| 36 | install-mbx: | 41 | install-mbx: |
| 42 | ${mkinstalldirs} ${DESTDIR}${tooldir}/lib${MULTISUBDIR} | ||
| 37 | - set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 43 | - set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done |
| 38 | + set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/mbx-$$x; done | 44 | + set -e; for x in ${MBX_CRT0} ${MBX_BSP}; do ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/mbx-$$x; done |
| 39 | set -e; for x in ${MBX_SCRIPTS} ${MBX_SPECS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done | 45 | set -e; for x in ${MBX_SCRIPTS} ${MBX_SPECS}; do ${INSTALL_DATA} $(srcdir)/$$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; done |
diff --git a/meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch b/meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch new file mode 100644 index 0000000000..2b66155eea --- /dev/null +++ b/meta/recipes-core/newlib/libgloss/libgloss-build-without-nostdinc.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Upstream-Status: Inappropriate [OE-Specific] | ||
| 2 | |||
| 3 | Since commit e0c0ad82 libgloss started passing the -nostdinc to CC. | ||
| 4 | |||
| 5 | They dont want to build against C library headers that are already in | ||
| 6 | the system to avoid pollution, however, we purposely build libgloss | ||
| 7 | against the newly built newlib C library, thats why we keep newlib | ||
| 8 | and libgloss in separate recipes and create a dependency between them. | ||
| 9 | |||
| 10 | This causes an issue where bitbake stops finding newlib headers while | ||
| 11 | libgloss is being built. | ||
| 12 | |||
| 13 | Do not pass -nostdinc to CC to maintain current behavior of | ||
| 14 | TCLIBC=newlib | ||
| 15 | |||
| 16 | |||
| 17 | Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org> | ||
| 18 | Index: newlib-3.0.0/libgloss/configure | ||
| 19 | =================================================================== | ||
| 20 | --- newlib-3.0.0.orig/libgloss/configure | ||
| 21 | +++ newlib-3.0.0/libgloss/configure | ||
| 22 | @@ -5106,7 +5106,7 @@ fi | ||
| 23 | fi | ||
| 24 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_isystem" >&5 | ||
| 25 | $as_echo "$libc_cv_compiler_isystem" >&6; } | ||
| 26 | -CC="$CC -nostdinc $libc_cv_compiler_isystem" | ||
| 27 | +CC="$CC $libc_cv_compiler_isystem" | ||
| 28 | |||
| 29 | host_makefile_frag_path=$host_makefile_frag | ||
| 30 | |||
