Digilent / Eclypse-Z7-OS

1 stars 3 forks source link

Building the SDK is broken with 2019.1 because qemu sources have moved #2

Open tkuraku opened 4 months ago

tkuraku commented 4 months ago

petalinux-build --sdk is broken because qemu sources have moved.

A solution is detailed here: https://support.xilinx.com/s/question/0D52E00006wRPs6SAG/petalinux-20191-fails-to-fetch-qemu-submodules-when-building-sdk?language=en_US&topicId=0TO2E000000YKXXWA4&topicName=Embedded%20Linux

tkuraku commented 4 months ago

Here is a patch with the fix.

diff --git a/project-spec/meta-user/qemu/files/gitmodules.diff b/project-spec/meta-user/qemu/files/gitmodules.diff
new file mode 100644
index 0000000..f0d3a80
--- /dev/null
+++ b/project-spec/meta-user/qemu/files/gitmodules.diff
@@ -0,0 +1,12 @@
+--- git/.gitmodules 2022-01-12 17:15:05.431960625 -0300
++++ git/.gitmodules_new 2022-01-12 17:15:55.812390762 -0300
+@@ -36,7 +36,7 @@
+ url = git://[git.qemu.org/QemuMacDrivers.git](http://git.qemu.org/QemuMacDrivers.git)
+ [submodule "ui/keycodemapdb"]
+ path = ui/keycodemapdb
+- url = git://[git.qemu.org/keycodemapdb.git](http://git.qemu.org/keycodemapdb.git)
++ url = https://gitlab.com/qemu-project/keycodemapdb.git
+ [submodule "capstone"]
+ path = capstone
+- url = git://[git.qemu.org/capstone.git](http://git.qemu.org/capstone.git)
++ url = https://gitlab.com/qemu-project/capstone.git
diff --git a/project-spec/meta-user/qemu/qemu-xilinx_2019.1.bbappend b/project-spec/meta-user/qemu/qemu-xilinx_2019.1.bbappend
new file mode 100644
index 0000000..d31f899
--- /dev/null
+++ b/project-spec/meta-user/qemu/qemu-xilinx_2019.1.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/files:"
+SRC_URI += "file://gitmodules.diff"
+export GIT_SSL_NO_VERIFY = "true"