<div dir="auto">Libbsd typo in subject</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 6, 2019, 4:33 AM <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" rel="noreferrer">chrisj@rtems.org</a>><br>
<br>
- Update rtems-bsp support to correctly handle hosts for BSP.<br>
- Clean up the options for a BSP.<br>
- Check all RTEMS 5 packages and add 5/rtems-packages for all that build.<br>
- Update download locations and checksum of all packages.<br>
<br>
- The work requires the kernel and Libbsd hacve the same prefix.<br>
---<br>
rtems/config/5/rtems-packages.bset | 24 ++++++<br>
rtems/config/databases/sqlite-3.8.8.1-1.cfg | 2 +-<br>
rtems/config/ftp/curl-7.65.1-1.cfg | 21 +++++<br>
rtems/config/ftp/curl.bset | 20 +++++<br>
rtems/config/graphics/freetype-2.4.10-1.cfg | 2 +-<br>
rtems/config/graphics/graphics-all.bset | 5 +-<br>
rtems/config/graphics/libjpeg-9a-1.cfg | 2 +-<br>
rtems/config/graphics/libpng-1.6.37-1.cfg | 21 +++++<br>
rtems/config/graphics/libpng.bset | 2 +-<br>
rtems/config/graphics/libtiff-4.0.10-1.cfg | 21 +++++<br>
rtems/config/graphics/libtiff-4.0.6-1.cfg | 2 +-<br>
rtems/config/graphics/libtiff.bset | 2 +-<br>
.../graphics/microwindows-0.93-dev-1.cfg | 12 +--<br>
rtems/config/graphics/t1lib-5.1.2-1.cfg | 4 +-<br>
rtems/config/net-mgmt/net-snmp-5.7.2.1-1.cfg | 6 +-<br>
rtems/config/net/lwip-1-1.cfg | 12 ++-<br>
rtems/config/net/ntp-4.2.6p5-1.cfg | 6 +-<br>
rtems/config/net/protobuf-2.6.1-1.cfg | 2 +-<br>
rtems/config/rtems-bsp.cfg | 83 +++++++++++++++----<br>
source-builder/config/curl-1.cfg | 81 ++++++++++++++++++<br>
source-builder/config/libpng-1.cfg | 4 +-<br>
source-builder/config/libtiff-1.cfg | 2 +-<br>
source-builder/config/lwip-1.cfg | 11 +--<br>
source-builder/config/microwindows-1.cfg | 10 +--<br>
source-builder/config/net-snmp-5-1.cfg | 1 +<br>
source-builder/config/t1lib-1.cfg | 2 +-<br>
source-builder/<a href="http://defaults.mc" rel="noreferrer noreferrer" target="_blank">defaults.mc</a> | 34 +++++---<br>
source-builder/sb/options.py | 12 ++-<br>
source-builder/sb/rtems-build-dep | 2 +-<br>
29 files changed, 335 insertions(+), 73 deletions(-)<br>
create mode 100644 rtems/config/5/rtems-packages.bset<br>
create mode 100644 rtems/config/ftp/curl-7.65.1-1.cfg<br>
create mode 100644 rtems/config/ftp/curl.bset<br>
create mode 100644 rtems/config/graphics/libpng-1.6.37-1.cfg<br>
create mode 100644 rtems/config/graphics/libtiff-4.0.10-1.cfg<br>
create mode 100644 source-builder/config/curl-1.cfg<br>
<br>
diff --git a/rtems/config/5/rtems-packages.bset b/rtems/config/5/rtems-packages.bset<br>
new file mode 100644<br>
index 0000000..edc7e6b<br>
--- /dev/null<br>
+++ b/rtems/config/5/rtems-packages.bset<br>
@@ -0,0 +1,24 @@<br>
+#<br>
+# RTEMS Packages that build for this release.<br>
+#<br>
+<br>
+#<br>
+# Databases<br>
+#<br>
+databases/sqlite<br>
+<br>
+#<br>
+# Graphics<br>
+#<br>
+graphics/freetype2<br>
+graphics/libjpeg<br>
+graphics/libpng<br>
+graphics/libtiff<br>
+graphics/t1lib<br>
+<br>
+#<br>
+# Networking<br>
+#<br>
+ftp/curl<br>
+net/lwip<br>
+net/protobuf<br>
diff --git a/rtems/config/databases/sqlite-3.8.8.1-1.cfg b/rtems/config/databases/sqlite-3.8.8.1-1.cfg<br>
index 609d4c1..aac06be 100644<br>
--- a/rtems/config/databases/sqlite-3.8.8.1-1.cfg<br>
+++ b/rtems/config/databases/sqlite-3.8.8.1-1.cfg<br>
@@ -19,7 +19,7 @@<br>
%define sqlite_src_version 3080801<br>
%define sqlite_src_year 2015<br>
<br>
-%hash md5 sqlite-src-%{sqlite_src_version}.zip 9dde57c312da00cbe791bcba42d1e96a<br>
+%hash sha512 sqlite-src-%{sqlite_src_version}.zip 4f09228cb0c9c608e492da6e480afe3d27a63e27ccdcf33a88d5e56427f0846efab8930c81026b8e608f1bbb8d63e8d937dd26571deb828617f7efa27a765950<br>
<br>
#<br>
# Sqlite configuration<br>
diff --git a/rtems/config/ftp/curl-7.65.1-1.cfg b/rtems/config/ftp/curl-7.65.1-1.cfg<br>
new file mode 100644<br>
index 0000000..abc7e9d<br>
--- /dev/null<br>
+++ b/rtems/config/ftp/curl-7.65.1-1.cfg<br>
@@ -0,0 +1,21 @@<br>
+#<br>
+# Curl 7.65.1<br>
+#<br>
+<br>
+%if %{release} == %{nil}<br>
+ %define release 1<br>
+%endif<br>
+<br>
+%include %{_configdir}/rtems-bsp.cfg<br>
+<br>
+#<br>
+# Curl Version<br>
+#<br>
+%define curl_version 7.65.1<br>
+<br>
+%hash sha512 curl-%{curl_version}.tar.xz aba2d979a416d14a0f0852d595665e49fc4f7bff3bee31f3a52b90ba9dc5ffdb09c092777f124215470b72c47ebca7ddb47844cbf5c0e9142099272b6ac55df4<br>
+<br>
+#<br>
+# Curl Build configuration<br>
+#<br>
+%include %{_configdir}/curl-1.cfg<br>
diff --git a/rtems/config/ftp/curl.bset b/rtems/config/ftp/curl.bset<br>
new file mode 100644<br>
index 0000000..84cac39<br>
--- /dev/null<br>
+++ b/rtems/config/ftp/curl.bset<br>
@@ -0,0 +1,20 @@<br>
+#<br>
+# Build set for Curl<br>
+#<br>
+<br>
+%define release 1<br>
+<br>
+#<br>
+# RTEMS Version<br>
+#<br>
+%define rtems_version 5<br>
+<br>
+#<br>
+# The RTEMS URL paths.<br>
+#<br>
+%include rtems-urls.bset<br>
+<br>
+#<br>
+# Build Curl<br>
+#<br>
+ftp/curl-7.65.1-1<br>
diff --git a/rtems/config/graphics/freetype-2.4.10-1.cfg b/rtems/config/graphics/freetype-2.4.10-1.cfg<br>
index 524dc3a..3963c98 100644<br>
--- a/rtems/config/graphics/freetype-2.4.10-1.cfg<br>
+++ b/rtems/config/graphics/freetype-2.4.10-1.cfg<br>
@@ -13,7 +13,7 @@<br>
#<br>
%define freetype_version 2.4.10<br>
<br>
-%hash md5 freetype-%{freetype_version}.tar.gz 4f255c6ee5d5cc2b5c3d423a07386fcb<br>
+%hash sha512 freetype-%{freetype_version}.tar.gz 507d1c03d394b695b5a96041ad7ee03b375964c89f007678db864a7e5bd2ee69d83e6c638f4aadaf348c921d37c16741a03ef9bee03196bda2b94ceea409b688<br>
<br>
#<br>
# freetype Build configuration<br>
diff --git a/rtems/config/graphics/graphics-all.bset b/rtems/config/graphics/graphics-all.bset<br>
index 5527ca3..b0ea5fe 100644<br>
--- a/rtems/config/graphics/graphics-all.bset<br>
+++ b/rtems/config/graphics/graphics-all.bset<br>
@@ -2,8 +2,11 @@<br>
# All RTEMS Graphics Build Sets<br>
#<br>
<br>
+graphics/freetype2<br>
graphics/libjpeg<br>
graphics/libpng<br>
graphics/libtiff<br>
graphics/t1lib<br>
-graphics/microwindows.bset<br>
+<br>
+# Remove as microwindows does not build. Please fix and provide a patch.<br>
+# graphics/microwindows<br>
diff --git a/rtems/config/graphics/libjpeg-9a-1.cfg b/rtems/config/graphics/libjpeg-9a-1.cfg<br>
index a366da9..fef32d6 100644<br>
--- a/rtems/config/graphics/libjpeg-9a-1.cfg<br>
+++ b/rtems/config/graphics/libjpeg-9a-1.cfg<br>
@@ -13,7 +13,7 @@<br>
#<br>
%define libjpeg_version 9a<br>
<br>
-%hash md5 jpegsrc.v%{libjpeg_version}.tar.gz 3353992aecaee1805ef4109aadd433e7<br>
+%hash sha512 jpegsrc.v%{libjpeg_version}.tar.gz 9b21cc115e22c68bea46db462263c5c7a0d10beb192a919ecccbd801a25982b518ce44d8c301dd582ecaba1850e0e0f20e322be82b0e24ae917b9949b4f10d3b<br>
<br>
#<br>
# libjpeg Build configuration<br>
diff --git a/rtems/config/graphics/libpng-1.6.37-1.cfg b/rtems/config/graphics/libpng-1.6.37-1.cfg<br>
new file mode 100644<br>
index 0000000..f4717f4<br>
--- /dev/null<br>
+++ b/rtems/config/graphics/libpng-1.6.37-1.cfg<br>
@@ -0,0 +1,21 @@<br>
+#<br>
+# libpng 1.6.37<br>
+#<br>
+<br>
+%if %{release} == %{nil}<br>
+ %define release 1<br>
+%endif<br>
+<br>
+%include %{_configdir}/rtems-bsp.cfg<br>
+<br>
+#<br>
+# libpng Version<br>
+#<br>
+%define libpng_version 1.6.37<br>
+<br>
+%hash sha512 libpng-%{libpng_version}.tar.xz 59e8c1059013497ae616a14c3abbe239322d3873c6ded0912403fc62fb260561768230b6ab997e2cccc3b868c09f539fd13635616b9fa0dd6279a3f63ec7e074<br>
+<br>
+#<br>
+# libpng Build configuration<br>
+#<br>
+%include %{_configdir}/libpng-1.cfg<br>
diff --git a/rtems/config/graphics/libpng.bset b/rtems/config/graphics/libpng.bset<br>
index 4e6db7d..57abeaf 100644<br>
--- a/rtems/config/graphics/libpng.bset<br>
+++ b/rtems/config/graphics/libpng.bset<br>
@@ -12,4 +12,4 @@<br>
#<br>
# Build libpng.<br>
#<br>
-graphics/libpng-1.6.21-1.cfg<br>
+graphics/libpng-1.6.37-1.cfg<br>
diff --git a/rtems/config/graphics/libtiff-4.0.10-1.cfg b/rtems/config/graphics/libtiff-4.0.10-1.cfg<br>
new file mode 100644<br>
index 0000000..901eed1<br>
--- /dev/null<br>
+++ b/rtems/config/graphics/libtiff-4.0.10-1.cfg<br>
@@ -0,0 +1,21 @@<br>
+#<br>
+# libtiff 4.0.10<br>
+#<br>
+<br>
+%if %{release} == %{nil}<br>
+ %define release 1<br>
+%endif<br>
+<br>
+%include %{_configdir}/rtems-bsp.cfg<br>
+<br>
+#<br>
+# tiff Version<br>
+#<br>
+%define tiff_version 4.0.10<br>
+<br>
+%hash sha512 tiff-%{tiff_version}.tar.gz d213e5db09fd56b8977b187c5a756f60d6e3e998be172550c2892dbdb4b2a8e8c750202bc863fe27d0d1c577ab9de1710d15e9f6ed665aadbfd857525a81eea8<br>
+<br>
+#<br>
+# tiff Build configuration<br>
+#<br>
+%include %{_configdir}/libtiff-1.cfg<br>
diff --git a/rtems/config/graphics/libtiff-4.0.6-1.cfg b/rtems/config/graphics/libtiff-4.0.6-1.cfg<br>
index 946daef..bcd7c5b 100644<br>
--- a/rtems/config/graphics/libtiff-4.0.6-1.cfg<br>
+++ b/rtems/config/graphics/libtiff-4.0.6-1.cfg<br>
@@ -13,7 +13,7 @@<br>
#<br>
%define tiff_version 4.0.6<br>
<br>
-%hash md5 tiff-%{tiff_version}.tar.gz d1d2e940dea0b5ad435f21f03d96dd72<br>
+%hash sha512 tiff-%{tiff_version}.tar.gz 2c8dbaaaab9f82a7722bfe8cb6fcfcf67472beb692f1b7dafaf322759e7016dad1bc58457c0f03db50aa5bd088fef2b37358fcbc1524e20e9e14a9620373fdf8<br>
<br>
#<br>
# tiff Build configuration<br>
diff --git a/rtems/config/graphics/libtiff.bset b/rtems/config/graphics/libtiff.bset<br>
index 434cdbc..f10e60e 100644<br>
--- a/rtems/config/graphics/libtiff.bset<br>
+++ b/rtems/config/graphics/libtiff.bset<br>
@@ -12,4 +12,4 @@<br>
#<br>
# Build libtiff.<br>
#<br>
-graphics/libtiff-4.0.6-1.cfg<br>
+graphics/libtiff-4.0.10-1.cfg<br>
diff --git a/rtems/config/graphics/microwindows-0.93-dev-1.cfg b/rtems/config/graphics/microwindows-0.93-dev-1.cfg<br>
index 0ab9da4..7ca8968 100644<br>
--- a/rtems/config/graphics/microwindows-0.93-dev-1.cfg<br>
+++ b/rtems/config/graphics/microwindows-0.93-dev-1.cfg<br>
@@ -11,15 +11,17 @@<br>
#<br>
# microwindows Version<br>
#<br>
-%define microwindows_version 0.93-dev<br>
+%define microwindows_version 56041759161132a94df3e575ae995e53d6b6e1d8<br>
<br>
%define rtems_git_tools_4_11 %{rtems_http_git}/rtems-tools/plain/tools/4.11<br>
<br>
-%source set microwindows git://<a href="http://github.com/ghaerr/microwindows.git" rel="noreferrer noreferrer" target="_blank">github.com/ghaerr/microwindows.git</a><br>
+%hash sha512 microwindows-%{microwindows_version}.tar.gz cf29a9d966a8a5b3926aab7f911c47890c9b1a589ff0ecf098e6be45ae1555958b0e437270fb26e353b8c58f261834a3a7f0fce84bea0fdb9138fc38c8703ddc<br>
+<br>
%patch add microwindows %{rtems_git_tools_4_11}/microwindows/microwindows-0.93-dev.diff<br>
-%hash md5 microwindows-0.93-dev.diff 5b06e77d9ee42c8ff0032bba07d01c1a<br>
-%patch add microwindows %{rtems_git_tools_4_11}/microwindows/microwindows-0.93-dev-without-keyboard.diff<br>
-%hash md5 microwindows-0.93-dev-without-keyboard.diff a675f55750754e1cd82a17496f0e8fab<br>
+%hash sha512 microwindows-0.93-dev.diff 2f575f603ce9ccff5c98e9c434d72fb9952d1385903495bf818d50de6568c57c9ca1d3320388e3bae384388d192a389012baf4d734d2cc8481d56f231d2a93d0<br>
+<br>
+#%patch add microwindows %{rtems_git_tools_4_11}/microwindows/microwindows-0.93-dev-without-keyboard.diff<br>
+#%hash sha512 microwindows-0.93-dev-without-keyboard.diff c235177fa80035ec70957aee1daa9232c9050abddac08e5f7b2977bd58703224367b4262a2ddc2999b1ac64b5ab838ad3ad740ee1490741293cffe7c16575fb2<br>
<br>
#<br>
# microwindows Build configuration<br>
diff --git a/rtems/config/graphics/t1lib-5.1.2-1.cfg b/rtems/config/graphics/t1lib-5.1.2-1.cfg<br>
index 58eaa3b..27de3cf 100644<br>
--- a/rtems/config/graphics/t1lib-5.1.2-1.cfg<br>
+++ b/rtems/config/graphics/t1lib-5.1.2-1.cfg<br>
@@ -13,13 +13,13 @@<br>
#<br>
%define t1lib_version 5.1.2<br>
<br>
-%hash md5 t1lib-%{t1lib_version}.tar.gz a5629b56b93134377718009df1435f3c<br>
+%hash sha512 t1lib-%{t1lib_version}.tar.gz 9f424b19c6f35cc4f194ff7351a4c2352216462c7d1b1d9650ad3a05cf48c6e90c89ccbcda5ecc47a4169a39a850cf84a1fcbf88b3b15614860c27364b631ae3<br>
<br>
#<br>
# Patch for RTEMS.<br>
#<br>
%patch add t1lib <a href="https://raw.githubusercontent.com/yangqiao/rtems-tools/graphics/tools/4.11/t1lib/t1lib-5.1.2.diff-%hash" rel="noreferrer noreferrer" target="_blank">https://raw.githubusercontent.com/yangqiao/rtems-tools/graphics/tools/4.11/t1lib/t1lib-5.1.2.diff<br>
-%hash</a> md5 t1lib-5.1.2.diff 98eeed85780227adf8525deab3679877<br>
+%hash sha512 t1lib-5.1.2.diff 1afd18182350d7d2426a910c61537f8532e149bf37c616f3a4a84ae0767c4549a2be857db6fd1b1994ed86f8a2e2d4cdfb2abdf67053c8ca1ee83893f4b56d23<br>
<br>
#<br>
# t1lib Build configuration<br>
diff --git a/rtems/config/net-mgmt/net-snmp-5.7.2.1-1.cfg b/rtems/config/net-mgmt/net-snmp-5.7.2.1-1.cfg<br>
index 7527871..e4fe63e 100644<br>
--- a/rtems/config/net-mgmt/net-snmp-5.7.2.1-1.cfg<br>
+++ b/rtems/config/net-mgmt/net-snmp-5.7.2.1-1.cfg<br>
@@ -13,7 +13,7 @@<br>
#<br>
%define net_snmp_version 5.7.2.1<br>
<br>
-%hash md5 net-snmp-%{net_snmp_version}.tar.gz 7db683faba037249837b226f64d566d4<br>
+%hash sha512 net-snmp-%{net_snmp_version}.tar.gz 6c4dadd145cab9572e2559ad99d6794469685086771c6d757d3667da1a061ab86746d53c28d48381c59a90d92b1812b813f3176cff156c41929177fb585299d0<br>
<br>
#<br>
# We need some special flags to build this version.<br>
@@ -23,8 +23,8 @@<br>
#<br>
# Patch for RTEMS support.<br>
#<br>
-%patch add net-snmp %{rtems_git_tools}/net-snmp/rtems-net-snmp-5.7.2.1-20140623.patch<br>
-%hash md5 rtems-net-snmp-5.7.2.1-20140623.patch 9a22fb4366a113f5df71ed2acd672b2b<br>
+%patch add net-snmp %{rtems_git_tools}/net-snmp/rtems-net-snmp-5.7.2.1-20190704.patch<br>
+#%hash sha512 rtems-net-snmp-5.7.2.1-20140623.patch 4eb987d88c6414f2e07d725c2ebb3e88a40191c7befce879cae9ef67143dc25aa88942cfc525d36cd3683476d1cc0f5882d4a730d3bb9c53be2c7a079874d7dd<br>
<br>
#<br>
# NetSNMP Build configuration<br>
diff --git a/rtems/config/net/lwip-1-1.cfg b/rtems/config/net/lwip-1-1.cfg<br>
index cf25963..8605f1c 100644<br>
--- a/rtems/config/net/lwip-1-1.cfg<br>
+++ b/rtems/config/net/lwip-1-1.cfg<br>
@@ -11,15 +11,19 @@<br>
#<br>
# LWIP Version<br>
#<br>
-%define lwip_version lwip-c2ebf5544b4268eac9b32c7f3a689ff646d96eef<br>
+%define lwip_version c2ebf5544b4268eac9b32c7f3a689ff646d96eef<br>
+%hash sha512 lwip-%{lwip_version}.tar.gz bfa93e050133ca591c628f0e3a04f5082f55a655b099cdd49138ebf74494354a4cbbee56839f5939174b4c965b29ec648c24b7479c73393ac94ec536cb578b70<br>
<br>
-#Will be modified to be pointing to RTEMS repo<br>
+#<br>
+# Will be modified to be pointing to RTEMS repo<br>
+#<br>
%define rtems_ragu_git <a href="https://raw.githubusercontent.com/ragunath3252/lwip-nodrv/master" rel="noreferrer noreferrer" target="_blank">https://raw.githubusercontent.com/ragunath3252/lwip-nodrv/master</a><br>
+<br>
#<br>
# Patch for RTEMS support.<br>
#<br>
-%patch add lwip %{rtems_ragu_git}/rtems.patch<br>
-%hash md5 rtems.patch 489c0def3a89e538fb526a5396bf27ca<br>
+%patch add lwip --rsb-file=lwip-nodrv-rtems.patch %{rtems_ragu_git}/rtems.patch<br>
+%hash sha512 lwip-nodrv-rtems.patch ba49163e11069cb036280023db064625e5d1aed3a6cf3e51c64e59639580e9f758434e60853242fb924eb5cebc73b478f01ff51f24505e85d4c21bb1963415e1<br>
<br>
#<br>
# LWIP Build configuration<br>
diff --git a/rtems/config/net/ntp-4.2.6p5-1.cfg b/rtems/config/net/ntp-4.2.6p5-1.cfg<br>
index 43afbf3..34676b6 100644<br>
--- a/rtems/config/net/ntp-4.2.6p5-1.cfg<br>
+++ b/rtems/config/net/ntp-4.2.6p5-1.cfg<br>
@@ -13,13 +13,13 @@<br>
#<br>
%define ntp_version 4.2.6p5<br>
<br>
-%hash md5 ntp-%{ntp_version}.tar.gz 00df80a84ec9528fcfb09498075525bc<br>
+%hash sha512 ntp-%{ntp_version}.tar.gz 8d76fc7e92b2ea6dd5031e6030a7aba4ff6fb3e19d3bc0153852509861be5d0960e70604814163caedb81f8315a451d78371f99634a50b55cfe1cbd2c69e3046<br>
<br>
#<br>
# Patch for RTEMS support.<br>
#<br>
-%patch add ntp %{rtems_git_tools}/ntp/rtems-ntp-4.2.6p5.diff<br>
-%hash md5 rtems-ntp-4.2.6p5.diff 6fce685a73873f924a48b19d6b1700fc<br>
+%patch add ntp %{rtems_http_git}/rtems-tools/plain/tools/4.11/ntp/rtems-ntp-4.2.6p5.diff<br>
+%hash sha512 rtems-ntp-4.2.6p5.diff 257223d207d0b77cde2b9d7add22e3b9d657b58998411d2e20d0b1adf36910be21f1277386c54c34f5d9616fccd29f721d007295708047ea7ae0270a00be25a0<br>
<br>
#<br>
# NTP Build configuration<br>
diff --git a/rtems/config/net/protobuf-2.6.1-1.cfg b/rtems/config/net/protobuf-2.6.1-1.cfg<br>
index 5218eac..2e507f6 100644<br>
--- a/rtems/config/net/protobuf-2.6.1-1.cfg<br>
+++ b/rtems/config/net/protobuf-2.6.1-1.cfg<br>
@@ -13,7 +13,7 @@<br>
#<br>
%define protobuf_version 2.6.1<br>
<br>
-%hash md5 protobuf-%{protobuf_version}.tar.gz f3916ce13b7fcb3072a1fa8cf02b2423<br>
+%hash sha512 protobuf-%{protobuf_version}.tar.gz 818ac4ad24aca84d214d14ac860a75c14494528821af144d3cb603f69c94d4500512814be6d62cc82973804ebfa99eb94d9f034b309f53cadb622603a7886a3e<br>
<br>
#<br>
# Protocol Buffers configuration<br>
diff --git a/rtems/config/rtems-bsp.cfg b/rtems/config/rtems-bsp.cfg<br>
index 28d250f..1c2b2e6 100644<br>
--- a/rtems/config/rtems-bsp.cfg<br>
+++ b/rtems/config/rtems-bsp.cfg<br>
@@ -3,13 +3,21 @@<br>
#<br>
<br>
#<br>
-# The RTEMS BSP support requires the host turple, the RTEMS BSP and the path to<br>
+# The RTEMS BSP support requires the host tuple, the RTEMS BSP and the path to<br>
# the tools. The prefix is set to an installed RTEMS. The built package is<br>
# installed into the prefix.<br>
#<br>
# Keeping the package's installed path in the RTEMS install path and separate<br>
-# to the tools lets the tools version vary independently. If --rtems-tools<br>
-# (--with-tools) is not provided use the prefix.<br>
+# to the tools lets the tools version vary independently.<br>
+#<br>
+# Provide the path to the RTEMS tools is not in the prefix with the<br>
+# --with-tools option. If --with-tools is not provided use the prefix.<br>
+#<br>
+# Provide the path to the installed RTEMS kernel is not in the prefix with the<br>
+# --with-rtems option. If --with-rtems is not provided use the prefix.<br>
+#<br>
+# Note, only a single path (--with-rtems) for the RTEMS kernel and any other<br>
+# add on or 3rd party libraries is supported.<br>
#<br>
<br>
#<br>
@@ -23,14 +31,24 @@<br>
%define rtems_bsp_error 1<br>
%endif<br>
<br>
-%if %{_target} == %{nil} && %{rtems_bsp_error}<br>
- %error No RTEMS target specified: --rtems-bsp=arch/bsp (or --target=target)<br>
+#<br>
+# The target is used by compilers or Cxc builds.<br>
+#<br>
+%if %{_target} != %{nil}<br>
+ %error RTEMS BSP builds use --host and not --target<br>
%endif<br>
<br>
-%if %{_host} != %{_build}<br>
- %error Canadian cross building for BSP is not supported.<br>
+#<br>
+# We need a host from the user to specifiy the RTEMS architecture and major<br>
+# version.<br>
+#<br>
+%if %{_host} == %{nil} && %{rtems_bsp_error}<br>
+ %error No RTEMS host or BSP specified: --rtems-bsp=arch/bsp and --host=<arch>-rtems<ver><br>
%endif<br>
<br>
+#<br>
+# We need a BSP from the user.<br>
+#<br>
%ifn %{defined with_rtems_bsp}<br>
%if %{rtems_bsp_error}<br>
%error No RTEMS BSP specified: --rtems-bsp=arch/bsp (or --with-rtems-bsp=bsp)<br>
@@ -38,14 +56,16 @@<br>
%define with_rtems_bsp sparc/erc32<br>
%endif<br>
<br>
+#<br>
+# Is on tools or RTEMS provided use the prefix.<br>
+#<br>
%ifn %{defined with_tools}<br>
%define with_tools %{_prefix}<br>
%endif<br>
<br>
-#<br>
-# Set the host to the target.<br>
-#<br>
-%define _host %{_target}<br>
+%ifn %{defined with_rtems}<br>
+ %define with_rtems %{_prefix}<br>
+%endif<br>
<br>
#<br>
# Set the path to the tools.<br>
@@ -57,27 +77,54 @@<br>
# enable support when crosscompiling, and filter specific optimisation and<br>
# warning from the flags that RTEMS exports.<br>
#<br>
-%{pkgconfig prefix %{_prefix}/lib/pkgconfig}<br>
+%{pkgconfig prefix %{with_rtems}/lib/pkgconfig}<br>
%{pkgconfig crosscompile yes}<br>
%{pkgconfig filter-flags yes}<br>
<br>
#<br>
# The RTEMS BSP Flags<br>
#<br>
-%define rtems_bsp %{with_rtems_bsp}<br>
-%define rtems_bsp_ccflags %{pkgconfig ccflags %{_host}-%{rtems_bsp}}<br>
-%define rtems_bsp_cflags %{pkgconfig cflags %{_host}-%{rtems_bsp}}<br>
-%define rtems_bsp_ldflags %{pkgconfig ldflags %{_host}-%{rtems_bsp}}<br>
-%define rtems_bsp_libs %{pkgconfig libs %{_host}-%{rtems_bsp}}<br>
+%define rtems_bsp %{with_rtems_bsp}<br>
+%define rtems_bsp_ccflags %{pkgconfig ccflags %{_host}-%{rtems_bsp}}<br>
+%define rtems_bsp_cflags %{pkgconfig cflags %{_host}-%{rtems_bsp}}<br>
+%define rtems_bsp_ldflags %{pkgconfig ldflags %{_host}-%{rtems_bsp}}<br>
+%define rtems_bsp_libs %{pkgconfig libs %{_host}-%{rtems_bsp}}<br>
<br>
%if %{rtems_bsp_cflags} == %{nil} && %{rtems_bsp_error}<br>
- %error No RTEMS target CFLAGS found; Please check the --rtems-bsp option.<br>
+ %error No RTEMS BSP CFLAGS found; Please check the --rtems-bsp option.<br>
%endif<br>
<br>
%if %{rtems_bsp_ccflags} == %{nil}<br>
%define rtems_bsp_ccflags %{rtems_bsp_cflags}<br>
%endif<br>
<br>
+#<br>
+# RTEMS BSP paths<br>
+#<br>
+%define rtems_bsp_cc %{_host}-gcc<br>
+%define rtems_bsp_incpath %{with_rtems}/%{_host}/%{rtems_bsp}/include<br>
+%define rtems_bsp_libpath %{with_rtems}/%{_host}/%{rtems_bsp}/lib<br>
+<br>
+#<br>
+# Check for installed libraries.<br>
+#<br>
+# - Check is LibBSD is install<br>
+# - Add librtemsdefaultconfig so configure scripts work.<br>
+#<br>
+# Note: default BSP flags include the standard RTEMS libraries.<br>
+#<br>
+%define rtems-dep-check %(%{_sbdir}/sb/rtems-build-dep -c %{with_tools}/bin/%{rtems_bsp_cc}<br>
+<br>
+%define rtems-libbsd %{rtems-dep-check} -L %{rtems_bsp_libpath} -l libbsd.a)<br>
+%if %{rtems-libbsd} == found<br>
+ %define rtems_bsp_libs %{rtems_bsp_libs} -lbsd -lm -lz<br>
+%endif<br>
+<br>
+%define rtems-defaultconfig %{rtems-dep-check} -L %{rtems_bsp_libpath} -l librtemsdefaultconfig.a)<br>
+%if %{rtems-defaultconfig} == found<br>
+ %define rtems_bsp_libs %{rtems_bsp_libs} -lrtemsdefaultconfig<br>
+%endif<br>
+<br>
#<br>
# Update the configure paths to be BSP specific.<br>
#<br>
diff --git a/source-builder/config/curl-1.cfg b/source-builder/config/curl-1.cfg<br>
new file mode 100644<br>
index 0000000..16ff3f7<br>
--- /dev/null<br>
+++ b/source-builder/config/curl-1.cfg<br>
@@ -0,0 +1,81 @@<br>
+#<br>
+# Curl (<a href="https://curl.haxx.se" rel="noreferrer noreferrer" target="_blank">https://curl.haxx.se</a>)<br>
+#<br>
+# This configuration file configure's, make's and install's libcurl.<br>
+#<br>
+<br>
+%if %{release} == %{nil}<br>
+%define release 1<br>
+%endif<br>
+<br>
+Name: curl-v%{curl_version}-%{_host}-%{release}<br>
+Summary: Curl provides libcurl, a package to manage http etc protocols.<br>
+Version: %{curl_version}<br>
+Release: %{release}<br>
+URL: <a href="https://curl.haxx.se" rel="noreferrer noreferrer" target="_blank">https://curl.haxx.se</a><br>
+<br>
+#<br>
+# Curl Source<br>
+#<br>
+%source set curl <a href="https://curl.haxx.se/download/curl-%%7Bcurl_version%7D.tar.xz" rel="noreferrer noreferrer" target="_blank">https://curl.haxx.se/download/curl-%{curl_version}.tar.xz</a><br>
+<br>
+#<br>
+# Curl's configures requires includes are in the CPPFLAGS.<br>
+#<br>
+%define host_cflags_no_includes 1<br>
+<br>
+#<br>
+# Prepare the source code.<br>
+#<br>
+%prep<br>
+ build_top=$(pwd)<br>
+<br>
+ source_dir_curl="curl-%{curl_version}"<br>
+ %source setup curl -q -n curl-%{curl_version}<br>
+<br>
+ cd ${build_top}<br>
+<br>
+#<br>
+# Build the source code.<br>
+# The configure should be run in the source dir<br>
+#<br>
+%build<br>
+ build_top=$(pwd)<br>
+<br>
+ %{build_directory}<br>
+<br>
+ mkdir -p ${build_dir}<br>
+ cd ${build_dir}<br>
+<br>
+ %{host_build_flags}<br>
+<br>
+ ../${source_dir_curl}/configure \<br>
+ --host=%{_host} \<br>
+ --prefix=%{_prefix} \<br>
+ --bindir=%{_bindir} \<br>
+ --exec_prefix=%{_exec_prefix} \<br>
+ --includedir=%{_includedir} \<br>
+ --libdir=%{_libdir} \<br>
+ --libexecdir=%{_libexecdir} \<br>
+ --mandir=%{_mandir} \<br>
+ --infodir=%{_infodir} \<br>
+ --datadir=%{_datadir}<br>
+<br>
+ %{__make} %{?_smp_mflags} all<br>
+<br>
+ cd ${build_top}<br>
+<br>
+%install<br>
+ build_top=$(pwd)<br>
+<br>
+ %{__rmdir} ${SB_BUILD_ROOT}<br>
+<br>
+ cd ${build_dir}<br>
+ %{__make} DESTDIR=${SB_BUILD_ROOT} install<br>
+ cd ${build_top}<br>
+<br>
+ #<br>
+ # Remove any executables created in the build<br>
+ #<br>
+ %{__rmdir} ${SB_BUILD_ROOT}/%{_bindir}<br>
+ %{__rmdir} ${SB_BUILD_ROOT}/%{_mandir}/man1<br>
diff --git a/source-builder/config/libpng-1.cfg b/source-builder/config/libpng-1.cfg<br>
index 2644948..dac60fc 100644<br>
--- a/source-builder/config/libpng-1.cfg<br>
+++ b/source-builder/config/libpng-1.cfg<br>
@@ -17,7 +17,9 @@ URL: <a href="http://www.libpng.org/" rel="noreferrer noreferrer" target="_blank">http://www.libpng.org/</a><br>
#<br>
# libpng Source<br>
#<br>
-%source set libpng <a href="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng%%7Blibpng_src_dir_revision%7D/libpng-%%7Blibpng_version%7D.tar.gz+#%source" rel="noreferrer noreferrer" target="_blank">ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng%{libpng_src_dir_revision}/libpng-%{libpng_version}.tar.gz<br>
+#%source</a> set libpng <a href="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng%%7Blibpng_src_dir_revision%7D/libpng-%%7Blibpng_version%7D.tar.gz" rel="noreferrer noreferrer" target="_blank">ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng%{libpng_src_dir_revision}/libpng-%{libpng_version}.tar.gz</a><br>
+<br>
+%source set libpng --rsb-file=libpng-%{libpng_version}.tar.xz <a href="http://prdownloads.sourceforge.net/libpng/libpng-%%7Blibpng_version%7D.tar.xz?download" rel="noreferrer noreferrer" target="_blank">http://prdownloads.sourceforge.net/libpng/libpng-%{libpng_version}.tar.xz?download</a><br>
<br>
#<br>
# Prepare the source code.<br>
diff --git a/source-builder/config/libtiff-1.cfg b/source-builder/config/libtiff-1.cfg<br>
index f7fa893..c9da951 100644<br>
--- a/source-builder/config/libtiff-1.cfg<br>
+++ b/source-builder/config/libtiff-1.cfg<br>
@@ -17,7 +17,7 @@ URL: <a href="http://www.libtiff.org/" rel="noreferrer noreferrer" target="_blank">http://www.libtiff.org/</a><br>
#<br>
# libtiff Source<br>
#<br>
-%source set libtiff <a href="ftp://ftp.remotesensing.org/pub/libtiff/tiff-%%7Btiff_version%7D.tar.gz" rel="noreferrer noreferrer" target="_blank">ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{tiff_version}.tar.gz</a><br>
+%source set libtiff <a href="http://download.osgeo.org/libtiff/tiff-%%7Btiff_version%7D.tar.gz" rel="noreferrer noreferrer" target="_blank">http://download.osgeo.org/libtiff/tiff-%{tiff_version}.tar.gz</a><br>
<br>
#<br>
# Prepare the source code.<br>
diff --git a/source-builder/config/lwip-1.cfg b/source-builder/config/lwip-1.cfg<br>
index 1dd3bb7..ef736c1 100644<br>
--- a/source-builder/config/lwip-1.cfg<br>
+++ b/source-builder/config/lwip-1.cfg<br>
@@ -17,15 +17,16 @@ URL: <a href="http://git.savannah.gnu.org/cgit/lwip.git" rel="noreferrer noreferrer" target="_blank">http://git.savannah.gnu.org/cgit/lwip.git</a><br>
#<br>
# LWIP Source<br>
#<br>
-%source set lwip git://<a href="http://git.sv.gnu.org/lwip.git?fetch?reset=hard?branch=master?checkout=c2ebf5544b4268eac9b32c7f3a689ff646d96eef" rel="noreferrer noreferrer" target="_blank">git.sv.gnu.org/lwip.git?fetch?reset=hard?branch=master?checkout=c2ebf5544b4268eac9b32c7f3a689ff646d96eef</a><br>
+%source set lwip <a href="http://git.savannah.gnu.org/cgit/lwip.git/snapshot/lwip-%%7Blwip_version%7D.tar.gz" rel="noreferrer noreferrer" target="_blank">http://git.savannah.gnu.org/cgit/lwip.git/snapshot/lwip-%{lwip_version}.tar.gz</a><br>
+<br>
#<br>
# Prepare the source code.<br>
#<br>
%prep<br>
build_top=$(pwd)<br>
<br>
- source_dir_lwip="%{lwip_version}"<br>
- %source setup lwip -q -n %{lwip_version}<br>
+ source_dir_lwip="lwip-%{lwip_version}"<br>
+ %source setup lwip -q -n lwip-%{lwip_version}<br>
%patch setup lwip -p1<br>
<br>
cd ${build_top}<br>
@@ -40,13 +41,13 @@ URL: <a href="http://git.savannah.gnu.org/cgit/lwip.git" rel="noreferrer noreferrer" target="_blank">http://git.savannah.gnu.org/cgit/lwip.git</a><br>
<br>
%{host_build_flags}<br>
<br>
- cd ${build_top}/%{lwip_version}<br>
+ cd ${build_top}/lwip-%{lwip_version}<br>
export RTEMS_MAKEFILE_PATH=%{_exec_prefix}<br>
%{__make} all<br>
<br>
# cd ${build_top}<br>
<br>
#%install<br>
- build_top=$(pwd)/%{lwip_version}<br>
+ build_top=$(pwd)/lwip-%{lwip_version}<br>
<br>
%{__make} install<br>
diff --git a/source-builder/config/microwindows-1.cfg b/source-builder/config/microwindows-1.cfg<br>
index d6cfab5..6ec3f30 100644<br>
--- a/source-builder/config/microwindows-1.cfg<br>
+++ b/source-builder/config/microwindows-1.cfg<br>
@@ -8,16 +8,16 @@<br>
%define release 1<br>
%endif<br>
<br>
-Name: microwindows-v%{microwindows_version}-%{_host}-%{release}<br>
+Name: microwindows-%{microwindows_version}-%{_host}-%{release}<br>
Summary: microwindows is an Open Source Window System<br>
Version: %{microwindows_version}<br>
Release: %{release}<br>
-URL: <a href="http://www.microwindows.org/" rel="noreferrer noreferrer" target="_blank">http://www.microwindows.org/</a><br>
+URL: <a href="http://www.microwindows.org/" rel="noreferrer noreferrer" target="_blank">http://www.microwindows.org/</a><br>
<br>
#<br>
# microwindows Source<br>
#<br>
-%source set microwindows <a href="ftp://microwindows.censoft.com/pub/microwindows/microwindows-src-%%7Bmicrowindows_version%7D.tar.gz" rel="noreferrer noreferrer" target="_blank">ftp://microwindows.censoft.com/pub/microwindows/microwindows-src-%{microwindows_version}.tar.gz</a><br>
+%source set microwindows --rsb-file=microwindows-%{microwindows_version}.tar.gz <a href="https://codeload.github.com/ghaerr/microwindows/tar.gz/%%7Bmicrowindows_version%7D" rel="noreferrer noreferrer" target="_blank">https://codeload.github.com/ghaerr/microwindows/tar.gz/%{microwindows_version}</a><br>
<br>
#<br>
# Prepare the source code.<br>
@@ -25,8 +25,8 @@ URL: <a href="http://www.microwindows.org/" rel="noreferrer noreferrer" target="_blank">http://www.microwindows.org/</a><br>
%prep<br>
build_top=$(pwd)<br>
<br>
- source_dir_microwindows="microwin"<br>
- %source setup microwindows -q -n microwin<br>
+ source_dir_microwindows="microwindows-%{microwindows_version}"<br>
+ %source setup microwindows -q -n microwindows-%{microwindows_version}<br>
%patch setup microwindows -p1<br>
<br>
cd ${build_top}<br>
diff --git a/source-builder/config/net-snmp-5-1.cfg b/source-builder/config/net-snmp-5-1.cfg<br>
index bffe430..c82e310 100644<br>
--- a/source-builder/config/net-snmp-5-1.cfg<br>
+++ b/source-builder/config/net-snmp-5-1.cfg<br>
@@ -43,6 +43,7 @@ URL: <a href="http://www.net-snmp.org/" rel="noreferrer noreferrer" target="_blank">http://www.net-snmp.org/</a><br>
<br>
CFLAGS="${CFLAGS} %{net_snmp_cflags}"<br>
<br>
+ LIBS="-lbsd -lm -lz -lrtemsdefaultconfig" \<br>
../${source_dir_net_snmp}/configure \<br>
--host=%{_host} \<br>
--prefix=%{_prefix} \<br>
diff --git a/source-builder/config/t1lib-1.cfg b/source-builder/config/t1lib-1.cfg<br>
index 3cb02c5..6202306 100644<br>
--- a/source-builder/config/t1lib-1.cfg<br>
+++ b/source-builder/config/t1lib-1.cfg<br>
@@ -17,7 +17,7 @@ URL: <a href="http://www.t1lib.org/" rel="noreferrer noreferrer" target="_blank">http://www.t1lib.org/</a><br>
#<br>
# t1lib Source<br>
#<br>
-%source set t1lib <a href="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/t1lib-%%7Bt1lib_version%7D.tar.gz" rel="noreferrer noreferrer" target="_blank">ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/t1lib-%{t1lib_version}.tar.gz</a><br>
+%source set t1lib <a href="http://ftp.netbsd.org/pub/pkgsrc/distfiles/t1lib-%%7Bt1lib_version%7D.tar.gz" rel="noreferrer noreferrer" target="_blank">http://ftp.netbsd.org/pub/pkgsrc/distfiles/t1lib-%{t1lib_version}.tar.gz</a><br>
<br>
#<br>
# Prepare the source code.<br>
diff --git a/source-builder/<a href="http://defaults.mc" rel="noreferrer noreferrer" target="_blank">defaults.mc</a> b/source-builder/<a href="http://defaults.mc" rel="noreferrer noreferrer" target="_blank">defaults.mc</a><br>
index 3508877..646be78 100644<br>
--- a/source-builder/<a href="http://defaults.mc" rel="noreferrer noreferrer" target="_blank">defaults.mc</a><br>
+++ b/source-builder/<a href="http://defaults.mc" rel="noreferrer noreferrer" target="_blank">defaults.mc</a><br>
@@ -64,14 +64,16 @@ _uid: none, convert, '%(%{__id_u} -n)'<br>
# Default flags that can be overridded to supply specific host or build<br>
# flags and include paths to the tools. The host is the final platform<br>
# the tools will run on and build is the host building the tools.<br>
-host_cflags: none, convert, '-O2 -pipe'<br>
-host_cxxflags: none, convert, '-O2 -pipe'<br>
+host_cflags: none, convert, '-O2 -g -pipe'<br>
+host_cxxflags: none, convert, '-O2 -g -pipe'<br>
host_ldflags: none, convert, ''<br>
host_includes: none, convert, ''<br>
-build_cflags: none, convert, '-O2 -pipe'<br>
-build_cxxflags: none, convert, '-O2 -pipe'<br>
+host_libs: none, convert, ''<br>
+build_cflags: none, convert, '-O2 -g -pipe'<br>
+build_cxxflags: none, convert, '-O2 -g -pipe'<br>
build_ldflags: none, convert, ''<br>
build_includes: none, convert, ''<br>
+build_libs: none, convert, ''<br>
<br>
# Extra path a platform can override.<br>
_extra_path: none, none, '%{_sbdir}'<br>
@@ -203,19 +205,22 @@ SB_SOURCE_DIR="%{_sourcedir}"<br>
SB_BUILD_DIR="%{_builddir}"<br>
# host == build, use build; host != build, host uses host and build uses build<br>
SB_HOST_CPPFLAGS="%{host_includes}"<br>
-SB_HOST_CFLAGS="%{host_cflags} %{host_includes}"<br>
-SB_HOST_CXXFLAGS="%{host_cxxflags} %{host_includes}"<br>
+# Optionally do not add includes to c/cxx flags as newer configure's complain<br>
+SB_HOST_CFLAGS="%{host_cflags} %{!?host_cflags_no_includes %{host_includes}}"<br>
+SB_HOST_CXXFLAGS="%{host_cxxflags} %{!?host_cflags_no_includes %{host_includes}}"<br>
SB_HOST_LDFLAGS="%{host_ldflags} %{?_tmproot:-L%{_tmproot}/${SB_PREFIX_CLEAN}/lib}"<br>
+SB_HOST_LIBS="%{host_libs}"<br>
SB_BUILD_CFLAGS="%{build_cflags} %{?_tmproot:-I%{_tmproot}/${SB_PREFIX_CLEAN}/include}"<br>
SB_BUILD_CXXFLAGS="%{build_cxxflags} %{?_tmproot:-I%{_tmproot}/${SB_PREFIX_CLEAN}/include}"<br>
SB_BUILD_LDFLAGS="%{build_ldflags} %{?_tmproot:-L%{_tmproot}/${SB_PREFIX_CLEAN}/lib}"<br>
+SB_BUILD_LBS="%{build_libs}"<br>
SB_CFLAGS="${SB_BUILD_CFLAGS} %{build_includes}"<br>
SB_CXXFLAGS="${SB_BUILD_CXXFLAGS} %{build_includes}"<br>
SB_ARCH="%{_arch}"<br>
SB_OS="%{_os}"<br>
export SB_SOURCE_DIR SB_BUILD_DIR SB_ARCH SB_OS<br>
-export SB_HOST_CPPFLAGS SB_HOST_CFLAGS SB_HOST_CXXFLAGS SB_HOST_LDFLAGS<br>
-export SB_BUILD_CFLAGS SB_BUILD_CXXFLAGS SB_BUILD_LDFLAGS<br>
+export SB_HOST_CPPFLAGS SB_HOST_CFLAGS SB_HOST_CXXFLAGS SB_HOST_LDFLAGS SB_HOST_LIBS<br>
+export SB_BUILD_CFLAGS SB_BUILD_CXXFLAGS SB_BUILD_LDFLAGS SB_BUILD_LIBS<br>
export SB_CFLAGS SB_CXXFLAGS<br>
# Documentation<br>
SB_DOC_DIR="%{_docdir}"<br>
@@ -326,11 +331,13 @@ if test "%{_build}" != "%{_host}" ; then<br>
CFLAGS="${SB_HOST_CFLAGS}"<br>
CXXFLAGS="${SB_HOST_CXXFLAGS}"<br>
LDFLAGS="${SB_HOST_LDFLAGS}"<br>
+ LIBS="${SB_HOST_LIBS}"<br>
# Host<br>
CPPFLAGS_FOR_HOST="${SB_HOST_CPPFLAGS}"<br>
CFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"<br>
CXXFLAGS_FOR_HOST="${SB_HOST_CXXFLAGS}"<br>
LDFLAGS_FOR_HOST="${SB_HOST_LDFLAGS}"<br>
+ LIBS_FOR_HOST="${SB_HOST_LIBS}"<br>
CXXFLAGS_FOR_HOST="${SB_HOST_CFLAGS}"<br>
CC_FOR_HOST=$(echo "%{_host_cc} ${SB_HOST_CFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
CXX_FOR_HOST=$(echo "%{_host_cxx} ${SB_HOST_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
@@ -338,30 +345,33 @@ if test "%{_build}" != "%{_host}" ; then<br>
CFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"<br>
CXXFLAGS_FOR_BUILD="${SB_BUILD_CXXFLAGS}"<br>
LDFLAGS_FOR_BUILD="${SB_BUILD_LDFLAGS}"<br>
+ LIBS_FOR_BUILD="${SB_BUILD_LIBS}"<br>
CXXFLAGS_FOR_BUILD="${SB_BUILD_CFLAGS}"<br>
CC_FOR_BUILD=$(echo "%{__cc} ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
CXX_FOR_BUILD=$(echo "%{__cxx} ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
else<br>
LDFLAGS="${SB_BUILD_LDFLAGS}"<br>
+ LIBS="${SB_BUILD_LIBS}"<br>
CC=$(echo "%{__cc} ${SB_BUILD_CFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
CXX=$(echo "%{__cxx} ${SB_BUILD_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
CC_FOR_BUILD=${CC}<br>
CXX_FOR_BUILD=${CXX}<br>
fi<br>
-export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS<br>
-export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST<br>
-export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD'''<br>
+export CC CXX CPPFLAGS CFLAGS CXXFLAGS LDFLAGS LIBS<br>
+export CC_FOR_HOST CXX_FOR_HOST CPPFLAGS_FOR_HOST CFLAGS_FOR_HOST CXXFLAGS_FOR_HOST LDFLAGS_FOR_HOST LIBS_FOR_HOST<br>
+export CC_FOR_BUILD CXX_FOR_BUILD CFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD LIBS_FOR_BUILS'''<br>
<br>
# Build/build flags.<br>
build_build_flags: none, none, '''<br>
# Build and build flags means force build == host<br>
# gcc is not ready to be compiled with -std=gnu99<br>
LDFLAGS="${SB_HOST_LDFLAGS}"<br>
+LIBS="${SB_HOST_LIBS}"<br>
CC=$(echo "%{__cc} ${SB_CFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
CXX=$(echo "%{__cxx} ${SB_CXXFLAGS}" | sed -e 's,-std=gnu99 ,,')<br>
CC_FOR_BUILD=${CC}<br>
CXX_FOR_BUILD=${CXX}<br>
-export CC CXX CC_FOR_BUILD CXX_FOR_BUILD CFLAGS LDFLAGS'''<br>
+export CC CXX CC_FOR_BUILD CXX_FOR_BUILD CFLAGS LDFLAGS LIBS'''<br>
<br>
# Default package settings<br>
_forced_static: none, none, '-Xlinker -Bstatic ${LIBS_STATIC} -Xlinker -Bdynamic'<br>
diff --git a/source-builder/sb/options.py b/source-builder/sb/options.py<br>
index ae67eeb..d8e7a88 100644<br>
--- a/source-builder/sb/options.py<br>
+++ b/source-builder/sb/options.py<br>
@@ -420,10 +420,14 @@ class command_line:<br>
_host = self.defaults.expand('%{_host}')<br>
_build = self.defaults.expand('%{_build}')<br>
_target = self.defaults.expand('%{_target}')<br>
- if len(_target):<br>
- return len(_host) and len(_build) and (_target) and \<br>
- _host != _build and _host != _target<br>
- return len(_host) and len(_build) and _host != _build<br>
+ #<br>
+ # This has been removed to fix how RTEMS 3rd party libraries<br>
+ # are built. This may break Cxc tools builds.<br>
+ #<br>
+ # if len(_target):<br>
+ # return len(_host) and len(_build) and (_target) and \<br>
+ # _host != _build and _host != _target<br>
+ return len(_target) and len(_host) and len(_build) and _host != _build<br>
<br>
def user_macros(self):<br>
#<br>
diff --git a/source-builder/sb/rtems-build-dep b/source-builder/sb/rtems-build-dep<br>
index 1f795d3..48a0823 100755<br>
--- a/source-builder/sb/rtems-build-dep<br>
+++ b/source-builder/sb/rtems-build-dep<br>
@@ -141,7 +141,7 @@ fi<br>
# Library file<br>
#<br>
if [ ${op} = "library" ]; then<br>
- if [ "${OS}" = "Windows_NT" -a "${OSTYPE}" -ne "cygwin" ]; then<br>
+ if [ "${OS}" = "Windows_NT" -a "${OSTYPE}" != "cygwin" ]; then<br>
sep=';'<br>
else<br>
sep=':'<br>
-- <br>
2.20.1 (Apple Git-117)<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>