The package rpms/tinygo.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/tinygo.git/commit/?id=6398141dc32....
Change:
+ExcludeArch: armv7hl ppc64le s390x
Thanks.
Full change:
============
commit a13f77fe54e4afffde707a9ce20013dbbe6472a1
Author: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
Date: Wed Sep 25 02:47:00 2019 -0400
Add patch reference.
diff --git a/tinygo.spec b/tinygo.spec
index b46733d..0222e01 100644
--- a/tinygo.spec
+++ b/tinygo.spec
@@ -49,7 +49,7 @@ Patch0001: 0001-Use-Fedora-command-names.patch
Patch0002: 0002-Skip-ARM-Linux-tests.patch
# We can't include STM32 .svd files because of their weird license.
Patch0003: 0003-Skip-STM32-tests.patch
-# ...
+#
https://github.com/tinygo-org/tinygo/pull/590
Patch0004: 0004-Allow-overridding-Python-used-for-generators.patch
# Not supported upstream yet.
commit 6398141dc32ff30c20778786b9383c103a1545fa
Author: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
Date: Wed Sep 25 02:25:23 2019 -0400
Enable x86 build.
diff --git a/tinygo.spec b/tinygo.spec
index 00064d6..b46733d 100644
--- a/tinygo.spec
+++ b/tinygo.spec
@@ -14,8 +14,9 @@ Version: 0.8.0
%global compiler_rt_version 8.0.0
%global nrfx_commit 3ab39a9d457bfe627473ed0e03a7f1161d9e4f27
-# To match regular Go's /usr/share/gocode
-%global tinygoroot %{_prefix}/share/tinygo
+# No longer matching regular Go's /usr/share/gocode because it also provides
+# pre-compiled binaries, and symlinks to arch-specific clang headers.
+%global tinygoroot %{_libdir}/tinygo
%gometa
@@ -52,7 +53,7 @@ Patch0003: 0003-Skip-STM32-tests.patch
Patch0004: 0004-Allow-overridding-Python-used-for-generators.patch
# Not supported upstream yet.
-ExcludeArch: %{ix86} armv7hl ppc64le s390x
+ExcludeArch: armv7hl ppc64le s390x
BuildRequires: clang-devel = %{clang_version}
BuildRequires:
golang(github.com/blakesmith/ar)
@@ -108,7 +109,7 @@ rm lib/nrfx/.gitignore
chmod -x lib/nrfx/doc/generate_html_doc.sh
mkdir lib/clang
-ln -s /usr/lib64/clang/%{clang_version}/include lib/clang/include
+ln -s %{_libdir}/clang/%{clang_version}/include lib/clang/include
%build
@@ -178,6 +179,7 @@ PATH=%{buildroot}%{_bindir}:$PATH make smoketest AVR=0 RISCV=0
%changelog
* Tue Sep 24 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 0.8.0-1
- Update to latest version
+- Enable x86 build
* Sun Aug 04 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 0.7.1-1
- Update to latest version
commit afb8a60cc7681148f8bfe3344d61b9b574b47cfb
Author: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
Date: Tue Sep 24 20:19:48 2019 -0400
Ignore non-clean tarballs as well.
diff --git a/.gitignore b/.gitignore
index 250346d..c875580 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,10 +1,11 @@
-/avr-6624554c02b237b23dc17d53e992bf54033fc228.tar.gz
-/cmsis-9fe411cef1cef5de58e5957b89760759de44e393-clean.tar.xz
-/cmsis_svd-b6f0a65ac37760f52d6ade23dd3205424d6c91fa-clean.tar.xz
-/compiler-rt-8.0.0.src.tar.xz
-/nrfx-3ab39a9d457bfe627473ed0e03a7f1161d9e4f27.tar.gz
+/avr-*.tar.gz
+/cmsis-*.tar.gz
+/cmsis-*-clean.tar.xz
+/cmsis_svd-*.tar.gz
+/cmsis_svd-*-clean.tar.xz
+/compiler-rt-*.src.tar.xz
+/nrfx-*.tar.gz
/tinygo-0.6.0.tar.gz
/tinygo-0.7.0.tar.gz
-/cmsis_svd-5910f3d115a53ead55c8158da24a8fa8bda1eb50-clean.tar.xz
/tinygo-0.7.1.tar.gz
/tinygo-0.8.0.tar.gz
commit e27e385162570b300ebec5c1f452b09a5f9111bc
Author: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
Date: Tue Sep 24 20:15:56 2019 -0400
Update to latest version.
diff --git a/.gitignore b/.gitignore
index 2567ac0..250346d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/tinygo-0.7.0.tar.gz
/cmsis_svd-5910f3d115a53ead55c8158da24a8fa8bda1eb50-clean.tar.xz
/tinygo-0.7.1.tar.gz
+/tinygo-0.8.0.tar.gz
diff --git a/0001-Use-Fedora-command-names.patch b/0001-Use-Fedora-command-names.patch
new file mode 100644
index 0000000..bdb100c
--- /dev/null
+++ b/0001-Use-Fedora-command-names.patch
@@ -0,0 +1,53 @@
+From 09d3a1157e66bde46f3919142f65e409de7b447b Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+Date: Fri, 7 Jun 2019 20:55:25 -0400
+Subject: [PATCH 1/4] Use Fedora command names.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+---
+ main_test.go | 2 +-
+ target.go | 8 ++++----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/main_test.go b/main_test.go
+index 9b406d2..6a47393 100644
+--- a/main_test.go
++++ b/main_test.go
+@@ -70,7 +70,7 @@ func TestCompiler(t *testing.T) {
+ continue // TODO: improve CGo
+ }
+ t.Run(path, func(t *testing.T) {
+- runTest(path, tmpdir, "arm--linux-gnueabihf", t)
++ runTest(path, tmpdir, "arm--linux-none", t)
+ })
+ }
+
+diff --git a/target.go b/target.go
+index ad701e8..29ac6a0 100644
+--- a/target.go
++++ b/target.go
+@@ -181,7 +181,7 @@ func LoadTarget(target string) (*TargetSpec, error) {
+ }
+ target = llvmarch + "--" + llvmos
+ if goarch == "arm" {
+- target += "-gnueabihf"
++ target += "-none"
+ }
+ return defaultTarget(goos, goarch, target)
+ }
+@@ -246,9 +246,9 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error)
{
+ if goarch != runtime.GOARCH {
+ // Some educated guesses as to how to invoke helper programs.
+ if goarch == "arm" && goos == "linux" {
+- spec.Linker = "arm-linux-gnueabihf-gcc"
+- spec.GDB = "arm-linux-gnueabihf-gdb"
+- spec.Emulator = []string{"qemu-arm", "-L",
"/usr/arm-linux-gnueabihf"}
++ spec.Linker = "arm-linux-gnu-gcc"
++ spec.GDB = "arm-linux-gnu-gdb"
++ spec.Emulator = []string{"qemu-arm", "-L",
"/usr/arm-linux-none"}
+ }
+ if goarch == "arm64" && goos == "linux" {
+ spec.Linker = "aarch64-linux-gnu-gcc"
+--
+2.21.0
+
diff --git a/0001-Use-system-path-for-TINYGOROOT-default.patch
b/0001-Use-system-path-for-TINYGOROOT-default.patch
deleted file mode 100644
index 0cf6bfe..0000000
--- a/0001-Use-system-path-for-TINYGOROOT-default.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-From 76d5a1c269245c410458702997c72d64e53afdb3 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
-Date: Fri, 7 Jun 2019 20:53:54 -0400
-Subject: [PATCH 1/4] Use system path for TINYGOROOT default.
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
----
- target.go | 17 ++---------------
- 1 file changed, 2 insertions(+), 15 deletions(-)
-
-diff --git a/target.go b/target.go
-index 679fa19..fc4589b 100644
---- a/target.go
-+++ b/target.go
-@@ -267,21 +267,8 @@ func sourceDir() string {
- return root
- }
-
-- // Find root from executable path.
-- path, err := os.Executable()
-- if err != nil {
-- // Very unlikely. Bail out if it happens.
-- panic("could not get executable path: " + err.Error())
-- }
-- root = filepath.Dir(filepath.Dir(path))
-- if isSourceDir(root) {
-- return root
-- }
--
-- // Fallback: use the original directory from where it was built
-- //
https://stackoverflow.com/a/32163888/559350
-- _, path, _, _ = runtime.Caller(0)
-- root = filepath.Dir(path)
-+ // Use system directory
-+ root = "/usr/share/tinygo"
- if isSourceDir(root) {
- return root
- }
---
-2.21.0
-
diff --git a/0002-Skip-ARM-Linux-tests.patch b/0002-Skip-ARM-Linux-tests.patch
new file mode 100644
index 0000000..1ced3a0
--- /dev/null
+++ b/0002-Skip-ARM-Linux-tests.patch
@@ -0,0 +1,39 @@
+From 351e01b09db90ca01a3a70817c7360c986ef7eb7 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+Date: Wed, 12 Jun 2019 04:28:55 -0400
+Subject: [PATCH 2/4] Skip ARM Linux tests.
+
+We don't have the C library to do this.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+---
+ main_test.go | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/main_test.go b/main_test.go
+index 6a47393..86e7fd3 100644
+--- a/main_test.go
++++ b/main_test.go
+@@ -66,6 +66,9 @@ func TestCompiler(t *testing.T) {
+ if runtime.GOOS == "linux" {
+ t.Log("running tests for linux/arm...")
+ for _, path := range matches {
++ if true {
++ continue
++ }
+ if path == filepath.Join("testdata",
"cgo")+string(filepath.Separator) {
+ continue // TODO: improve CGo
+ }
+@@ -76,6 +79,9 @@ func TestCompiler(t *testing.T) {
+
+ t.Log("running tests for linux/arm64...")
+ for _, path := range matches {
++ if true {
++ continue
++ }
+ if path == filepath.Join("testdata",
"cgo")+string(filepath.Separator) {
+ continue // TODO: improve CGo
+ }
+--
+2.21.0
+
diff --git a/0002-Use-Fedora-command-names.patch b/0002-Use-Fedora-command-names.patch
deleted file mode 100644
index a55f18f..0000000
--- a/0002-Use-Fedora-command-names.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From ed1e9c66e17e2cf3bc2d21f04208f07a259ffc32 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
-Date: Fri, 7 Jun 2019 20:55:25 -0400
-Subject: [PATCH 2/4] Use Fedora command names.
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
----
- main_test.go | 2 +-
- target.go | 8 ++++----
- 2 files changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/main_test.go b/main_test.go
-index fa85a82..f0d403c 100644
---- a/main_test.go
-+++ b/main_test.go
-@@ -70,7 +70,7 @@ func TestCompiler(t *testing.T) {
- continue // TODO: improve CGo
- }
- t.Run(path, func(t *testing.T) {
-- runTest(path, tmpdir, "arm--linux-gnueabihf", t)
-+ runTest(path, tmpdir, "arm--linux-none", t)
- })
- }
-
-diff --git a/target.go b/target.go
-index fc4589b..6c29ce8 100644
---- a/target.go
-+++ b/target.go
-@@ -173,7 +173,7 @@ func LoadTarget(target string) (*TargetSpec, error) {
- }
- target = llvmarch + "--" + llvmos
- if goarch == "arm" {
-- target += "-gnueabihf"
-+ target += "-none"
- }
- return defaultTarget(goos, goarch, target)
- }
-@@ -238,9 +238,9 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error)
{
- if goarch != runtime.GOARCH {
- // Some educated guesses as to how to invoke helper programs.
- if goarch == "arm" && goos == "linux" {
-- spec.Linker = "arm-linux-gnueabihf-gcc"
-- spec.GDB = "arm-linux-gnueabihf-gdb"
-- spec.Emulator = []string{"qemu-arm", "-L",
"/usr/arm-linux-gnueabihf"}
-+ spec.Linker = "arm-linux-gnu-gcc"
-+ spec.GDB = "arm-linux-gnu-gdb"
-+ spec.Emulator = []string{"qemu-arm", "-L",
"/usr/arm-linux-none"}
- }
- if goarch == "arm64" && goos == "linux" {
- spec.Linker = "aarch64-linux-gnu-gcc"
---
-2.21.0
-
diff --git a/0003-Skip-ARM-Linux-tests.patch b/0003-Skip-ARM-Linux-tests.patch
deleted file mode 100644
index 5117ea3..0000000
--- a/0003-Skip-ARM-Linux-tests.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 8e26941216ff2213ab396ba2bdfe06a370a77553 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
-Date: Wed, 12 Jun 2019 04:28:55 -0400
-Subject: [PATCH 3/4] Skip ARM Linux tests.
-
-We don't have the C library to do this.
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
----
- main_test.go | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/main_test.go b/main_test.go
-index f0d403c..0f28752 100644
---- a/main_test.go
-+++ b/main_test.go
-@@ -66,6 +66,9 @@ func TestCompiler(t *testing.T) {
- if runtime.GOOS == "linux" {
- t.Log("running tests for linux/arm...")
- for _, path := range matches {
-+ if true {
-+ continue
-+ }
- if path == filepath.Join("testdata",
"cgo")+string(filepath.Separator) {
- continue // TODO: improve CGo
- }
-@@ -76,6 +79,9 @@ func TestCompiler(t *testing.T) {
-
- t.Log("running tests for linux/arm64...")
- for _, path := range matches {
-+ if true {
-+ continue
-+ }
- if path == filepath.Join("testdata",
"cgo")+string(filepath.Separator) {
- continue // TODO: improve CGo
- }
---
-2.21.0
-
diff --git a/0003-Skip-STM32-tests.patch b/0003-Skip-STM32-tests.patch
new file mode 100644
index 0000000..7f6cf5e
--- /dev/null
+++ b/0003-Skip-STM32-tests.patch
@@ -0,0 +1,49 @@
+From d195702b68f8fac69fbafcabb490081834d4bb39 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+Date: Thu, 13 Jun 2019 02:50:40 -0400
+Subject: [PATCH 3/4] Skip STM32 tests.
+
+We can't ship the STM32 .svd files due to their odd license.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+---
+ Makefile | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index e1d9061..90c9efc 100644
+--- a/Makefile
++++ b/Makefile
+@@ -41,7 +41,7 @@ fmt-check:
+ @unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] &&
exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo "
$$fn"; done; exit 1
+
+
+-gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-sifive
gen-device-stm32
++gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-sifive
+
+ gen-device-avr:
+ ./tools/gen-device-avr.py lib/avr/packs/atmega src/device/avr/
+@@ -112,7 +112,6 @@ smoketest:
+ tinygo build -size short -o test.elf -target=microbit examples/echo
+ tinygo build -size short -o test.elf -target=nrf52840-mdk examples/blinky1
+ tinygo build -size short -o test.elf -target=pca10031 examples/blinky1
+- tinygo build -size short -o test.elf -target=bluepill examples/blinky1
+ tinygo build -size short -o test.elf -target=reelboard examples/blinky1
+ tinygo build -size short -o test.elf -target=reelboard examples/blinky2
+ tinygo build -size short -o test.elf -target=pca10056 examples/blinky1
+@@ -121,12 +120,9 @@ smoketest:
+ tinygo build -size short -o test.elf -target=feather-m0 examples/blinky1
+ tinygo build -size short -o test.elf -target=trinket-m0 examples/blinky1
+ tinygo build -size short -o test.elf -target=circuitplay-express examples/blinky1
+- tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky1
+- tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky2
+ tinygo build -size short -o test.elf -target=circuitplay-express examples/i2s
+ tinygo build -size short -o test.elf -target=gameboy-advance examples/gba-display
+ tinygo build -size short -o test.elf -target=itsybitsy-m4 examples/blinky1
+- tinygo build -size short -o test.elf -target=nucleo-f103rb examples/blinky1
+ ifneq ($(AVR), 0)
+ tinygo build -size short -o test.elf -target=arduino examples/blinky1
+ tinygo build -size short -o test.elf -target=digispark examples/blinky1
+--
+2.21.0
+
diff --git a/0004-Allow-overridding-Python-used-for-generators.patch
b/0004-Allow-overridding-Python-used-for-generators.patch
new file mode 100644
index 0000000..a8cd80f
--- /dev/null
+++ b/0004-Allow-overridding-Python-used-for-generators.patch
@@ -0,0 +1,56 @@
+From 6156198f2378eee7912a5e5395bd799e13f8aae9 Mon Sep 17 00:00:00 2001
+From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+Date: Tue, 24 Sep 2019 04:50:25 -0400
+Subject: [PATCH 4/4] Allow overridding Python used for generators.
+
+Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
+---
+ Makefile | 13 +++++++------
+ 1 file changed, 7 insertions(+), 6 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 90c9efc..65d407d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -3,6 +3,7 @@
+ all: tinygo
+ tinygo: build/tinygo
+
++PYTHON ?= python
+ # Default build and source directories, as created by `make llvm-build`.
+ LLVM_BUILDDIR ?= llvm-build
+ CLANG_SRC ?= llvm-project/clang
+@@ -44,24 +45,24 @@ fmt-check:
+ gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-sifive
+
+ gen-device-avr:
+- ./tools/gen-device-avr.py lib/avr/packs/atmega src/device/avr/
+- ./tools/gen-device-avr.py lib/avr/packs/tiny src/device/avr/
++ $(PYTHON) ./tools/gen-device-avr.py lib/avr/packs/atmega src/device/avr/
++ $(PYTHON) ./tools/gen-device-avr.py lib/avr/packs/tiny src/device/avr/
+ go fmt ./src/device/avr
+
+ gen-device-nrf:
+- ./tools/gen-device-svd.py lib/nrfx/mdk/ src/device/nrf/
--source=https://github.com/NordicSemiconductor/nrfx/tree/master/mdk
++ $(PYTHON) ./tools/gen-device-svd.py lib/nrfx/mdk/ src/device/nrf/
--source=https://github.com/NordicSemiconductor/nrfx/tree/master/mdk
+ go fmt ./src/device/nrf
+
+ gen-device-sam:
+- ./tools/gen-device-svd.py lib/cmsis-svd/data/Atmel/ src/device/sam/
--source=https://github.com/posborne/cmsis-svd/tree/master/data/Atmel
++ $(PYTHON) ./tools/gen-device-svd.py lib/cmsis-svd/data/Atmel/ src/device/sam/
--source=https://github.com/posborne/cmsis-svd/tree/master/data/Atmel
+ go fmt ./src/device/sam
+
+ gen-device-sifive:
+- ./tools/gen-device-svd.py lib/cmsis-svd/data/SiFive-Community/ src/device/sifive/
--source=https://github.com/AdaCore/svd2ada/tree/master/CMSIS-SVD/SiFive-Community
++ $(PYTHON) ./tools/gen-device-svd.py lib/cmsis-svd/data/SiFive-Community/
src/device/sifive/
--source=https://github.com/AdaCore/svd2ada/tree/master/CMSIS-SVD/SiFive-Community
+ go fmt ./src/device/sifive
+
+ gen-device-stm32:
+- ./tools/gen-device-svd.py lib/cmsis-svd/data/STMicro/ src/device/stm32/
--source=https://github.com/posborne/cmsis-svd/tree/master/data/STMicro
++ $(PYTHON) ./tools/gen-device-svd.py lib/cmsis-svd/data/STMicro/ src/device/stm32/
--source=https://github.com/posborne/cmsis-svd/tree/master/data/STMicro
+ go fmt ./src/device/stm32
+
+
+--
+2.21.0
+
diff --git a/0004-Skip-STM32-tests.patch b/0004-Skip-STM32-tests.patch
deleted file mode 100644
index 874e730..0000000
--- a/0004-Skip-STM32-tests.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From a49998a25be22a56f0f668b77b8994dc4d5987aa Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
-Date: Thu, 13 Jun 2019 02:50:40 -0400
-Subject: [PATCH 4/4] Skip STM32 tests.
-
-We can't ship the STM32 .svd files due to their odd license.
-
-Signed-off-by: Elliott Sales de Andrade <quantum.analyst(a)gmail.com>
----
- Makefile | 5 +----
- 1 file changed, 1 insertion(+), 4 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 239a2df..c8ece47 100644
---- a/Makefile
-+++ b/Makefile
-@@ -41,7 +41,7 @@ fmt-check:
- @unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] &&
exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo "
$$fn"; done; exit 1
-
-
--gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-sifive
gen-device-stm32
-+gen-device: gen-device-avr gen-device-nrf gen-device-sam gen-device-sifive
-
- gen-device-avr:
- ./tools/gen-device-avr.py lib/avr/packs/atmega src/device/avr/
-@@ -112,7 +112,6 @@ smoketest:
- tinygo build -size short -o test.elf -target=microbit examples/echo
- tinygo build -size short -o test.elf -target=nrf52840-mdk examples/blinky1
- tinygo build -size short -o test.elf -target=pca10031 examples/blinky1
-- tinygo build -size short -o test.elf -target=bluepill examples/blinky1
- tinygo build -size short -o test.elf -target=reelboard examples/blinky1
- tinygo build -size short -o test.elf -target=reelboard examples/blinky2
- tinygo build -size short -o test.elf -target=pca10056 examples/blinky1
-@@ -121,8 +120,6 @@ smoketest:
- tinygo build -size short -o test.elf -target=feather-m0 examples/blinky1
- tinygo build -size short -o test.elf -target=trinket-m0 examples/blinky1
- tinygo build -size short -o test.elf -target=circuitplay-express examples/blinky1
-- tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky1
-- tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky2
- tinygo build -size short -o test.elf -target=circuitplay-express examples/i2s
- ifneq ($(AVR), 0)
- tinygo build -size short -o test.elf -target=arduino examples/blinky1
---
-2.21.0
-
diff --git a/sources b/sources
index 32428a0..7aba3e1 100644
--- a/sources
+++ b/sources
@@ -1,6 +1 @@
-SHA512 (tinygo-0.7.1.tar.gz) =
f97b0c3a6bd65bbc8c1ec41a8452fa88e0c6c4b8bbe3216ea25b8014d035a90847c5d1f219b9be9c5476a463e5a5da53128a8254498126ac1f6239959d95bace
-SHA512 (avr-6624554c02b237b23dc17d53e992bf54033fc228.tar.gz) =
1aa157bd761db38f8680614fa1cf47d7009508f65291b7eaaa5aba1ae76d35103f68a42947b7269a170d2f1cf8fb09941a5d74070fe6d204b68dd15a9ad2ed29
-SHA512 (cmsis-9fe411cef1cef5de58e5957b89760759de44e393-clean.tar.xz) =
f131fc241f61982c49f334eb502c2f13da61eb7bdaa641ee84a8de30c4d576b735b8aadeafd7d75351473a2df6a42de6a236ecc5dcc616ee6cfcc07af29446f9
-SHA512 (cmsis_svd-5910f3d115a53ead55c8158da24a8fa8bda1eb50-clean.tar.xz) =
7187cade0e78bbd6e65a8f38109aa95783e71cc3fad445fc51ac8fca796845b8ad4b9b84335ef3aa725b9abb0c3ed72c768c0f7da5ecc7b14a505a328b625b47
-SHA512 (compiler-rt-8.0.0.src.tar.xz) =
fe9f69fe2269fa3d560ae97fdacd462f855fb0b7a5f647f5b8595206ff7febca6496725adc953de411a827c761e2b3ca11a2149f25707d6c62af0722b68ba913
-SHA512 (nrfx-3ab39a9d457bfe627473ed0e03a7f1161d9e4f27.tar.gz) =
95b5293c9b707aeb4d8ad13643619c053ba0fa9423053a12f9a65b0ed8febc2aab87cd832e6ac73e9673987b7cb73f85cce68cb85ce4ca5bd607afee1098f9e9
+SHA512 (tinygo-0.8.0.tar.gz) =
0f3750c3d216033342efc77fc419d9299202880bb9979f6db6c9e7f4c3f7b3792e5d407a0a9543b07c1ed8c08d16d062465e22cf392e5f71227d09afdf7275ea
diff --git a/tinygo.spec b/tinygo.spec
index 95ce5f3..00064d6 100644
--- a/tinygo.spec
+++ b/tinygo.spec
@@ -5,7 +5,7 @@
#
https://github.com/tinygo-org/tinygo
%global goipath
github.com/tinygo-org/tinygo
-Version: 0.7.1
+Version: 0.8.0
%global CMSIS_commit 9fe411cef1cef5de58e5957b89760759de44e393
%global avr_commit 6624554c02b237b23dc17d53e992bf54033fc228
@@ -43,12 +43,13 @@ Source4: cmsis_svd-%{cmsis_svd_commit}-clean.tar.xz
Source5:
https://releases.llvm.org/%{compiler_rt_version}/compiler-rt-%{compiler_r...
Source6:
https://github.com/NordicSemiconductor/nrfx/archive/%{nrfx_commit}/nrfx-%...
# Fedora-specific.
-Patch0001: 0001-Use-system-path-for-TINYGOROOT-default.patch
-Patch0002: 0002-Use-Fedora-command-names.patch
+Patch0001: 0001-Use-Fedora-command-names.patch
# We don't have ARM glibc to build these.
-Patch0003: 0003-Skip-ARM-Linux-tests.patch
+Patch0002: 0002-Skip-ARM-Linux-tests.patch
# We can't include STM32 .svd files because of their weird license.
-Patch0004: 0004-Skip-STM32-tests.patch
+Patch0003: 0003-Skip-STM32-tests.patch
+# ...
+Patch0004: 0004-Allow-overridding-Python-used-for-generators.patch
# Not supported upstream yet.
ExcludeArch: %{ix86} armv7hl ppc64le s390x
@@ -111,9 +112,10 @@ ln -s /usr/lib64/clang/%{clang_version}/include lib/clang/include
%build
+export LDFLAGS="-X main.TINYGOROOT=%{tinygoroot} "
%gobuildroot
%gobuild -o _bin/tinygo %{goipath}
-GO111MODULE=off %make_build gen-device
+GO111MODULE=off %make_build gen-device PYTHON=%{__python3}
for target in armv6m-none-eabi armv7m-none-eabi armv7em-none-eabi; do
TINYGOROOT=$PWD \
_bin/tinygo \
@@ -174,6 +176,9 @@ PATH=%{buildroot}%{_bindir}:$PATH make smoketest AVR=0 RISCV=0
%changelog
+* Tue Sep 24 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 0.8.0-1
+- Update to latest version
+
* Sun Aug 04 2019 Elliott Sales de Andrade <quantum.analyst(a)gmail.com> - 0.7.1-1
- Update to latest version