<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/28/2018 09:32 PM, Burton, Ross
wrote:<br>
</div>
<blockquote
cite="mid:CAJTo0Lb4n1KggfayXTWsuEp2inRBksC29UCOxKXjKimbiTX4PA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">No, still broken:
<div><br>
</div>
<div>
<div>ERROR: systemd-boot-236-r0 do_compile: oe_runmake failed</div>
<div>ERROR: systemd-boot-236-r0 do_compile: Function failed:
do_compile (log file is located at
/data/poky-tmp/master/work/corei7-64-intel-common-poky-linux/systemd-boot/236-r0/temp/log.do_compile.31074)</div>
<div>ERROR: Logfile of failure stored in:
/data/poky-tmp/master/work/corei7-64-intel-common-poky-linux/systemd-boot/236-r0/temp/log.do_compile.31074</div>
<div>Log data follows:</div>
<div>| DEBUG: Executing shell function do_compile</div>
<div>| [1/10] Generating console.c.o with a custom command.</div>
<div>| [2/10] Generating graphics.c.o with a custom command.</div>
<div>| [3/10] Generating pe.c.o with a custom command.</div>
<div>| [4/10] Generating measure.c.o with a custom command.</div>
<div>| [5/10] Generating disk.c.o with a custom command.</div>
<div>| [6/10] Generating util.c.o with a custom command.</div>
<div>| [7/10] Generating shim.c.o with a custom command.</div>
<div>| [8/10] Generating boot.c.o with a custom command.</div>
<div>| [9/10] Generating systemd_boot.so with a custom
command.</div>
<div>| [10/10] Generating systemd-bootx64.efi with a custom
command.</div>
<div>| NOTE: make -j 20 linuxx64.efi.stub</div>
<div>| make: *** No rule to make target 'linuxx64.efi.stub'.
Stop.</div>
<div>| ERROR: oe_runmake failed</div>
<div>| WARNING: exit code 1 from a shell command.</div>
<div>| ERROR: Function failed: do_compile (log file is located
at
/data/poky-tmp/master/work/corei7-64-intel-common-poky-linux/systemd-boot/236-r0/temp/log.do_compile.31074)</div>
<div>ERROR: Task
(/home/ross/Yocto/poky/meta/recipes-core/systemd/systemd-boot_236.bb:do_compile)
failed with exit code '1'</div>
</div>
<div><br>
</div>
<div>Ross</div>
</div>
<div class="gmail_extra"><br>
</div>
</blockquote>
<br>
I'll try to reproduce this problem and solve it.<br>
<br>
Best Regards,<br>
Chen Qi<br>
<br>
<blockquote
cite="mid:CAJTo0Lb4n1KggfayXTWsuEp2inRBksC29UCOxKXjKimbiTX4PA@mail.gmail.com"
type="cite">
<div class="gmail_extra">
<div class="gmail_quote">On 28 February 2018 at 13:30, Burton,
Ross <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>ERROR: systemd-boot-236-r0 do_compile: Function
failed: do_compile (log file is located at
/data/poky-tmp/master/work/<wbr>corei7-64-intel-common-poky-<wbr>linux/systemd-boot/236-r0/<wbr>temp/log.do_compile.10165)</div>
<div>ERROR: Logfile of failure stored in:
/data/poky-tmp/master/work/<wbr>corei7-64-intel-common-poky-<wbr>linux/systemd-boot/236-r0/<wbr>temp/log.do_compile.10165</div>
<div>Log data follows:</div>
<div>| DEBUG: Executing shell function do_compile</div>
<div>| /data/poky-tmp/master/work/<wbr>corei7-64-intel-common-poky-<wbr>linux/systemd-boot/236-r0/<wbr>temp/run.do_compile.10165:
109: [: x86_64: unexpected operator</div>
<div>| ninja: error: unknown target 'src/boot/efi/systemd-<wbr>bootia32.efi'</div>
<span class="">
<div><br>
</div>
<div><span style="font-size:12.800000190734863px">+
if [ "${TARGET_ARCH}" == "x86_64" ]; then</span><br
style="font-size:12.800000190734863px">
</div>
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
</span>
<div><span style="font-size:12.800000190734863px">Remember
that == is a bashism and the correct operator for [ is
=.</span></div>
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
<div><span style="font-size:12.800000190734863px">(fix
squashed here)</span></div>
<span class="HOEnZb"><font color="#888888">
<div><span style="font-size:12.800000190734863px"><br>
</span></div>
<div>Ross</div>
</font></span></div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 28 February 2018 at 05:56,
Chen Qi <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:Qi.Chen@windriver.com"
target="_blank">Qi.Chen@windriver.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Upgrade
systemd-boot to 236.<br>
<br>
As systemd has dropped autotools support, fix
configure and compile<br>
failures related to meson.<br>
<br>
Signed-off-by: Chen Qi <<a
moz-do-not-send="true"
href="mailto:Qi.Chen@windriver.com"
target="_blank">Qi.Chen@windriver.com</a>><br>
---<br>
meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_234.bb"
rel="noreferrer" target="_blank">sys<wbr>temd-boot_234.bb</a>
| 43 ---------------<br>
meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_236.bb"
rel="noreferrer" target="_blank">sys<wbr>temd-boot_236.bb</a>
| 49 +++++++++++++++++<br>
.../systemd/0001-Also-check-i<wbr>586-for-ia32.patch
| 28 ++++++++++<br>
...efi_cc-and-efi_ld-correctl<wbr>y-when-cross-co.patch
| 62 ++++++++++++++++++++++<br>
4 files changed, 139 insertions(+), 43
deletions(-)<br>
delete mode 100644 meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_234.bb"
rel="noreferrer" target="_blank">syst<wbr>emd-boot_234.bb</a><br>
create mode 100644 meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_236.bb"
rel="noreferrer" target="_blank">syst<wbr>emd-boot_236.bb</a><br>
create mode 100644 meta/recipes-core/systemd/syst<wbr>emd/0001-Also-check-i586-for-<wbr>ia32.patch<br>
create mode 100644 meta/recipes-core/systemd/syst<wbr>emd/0001-Fix-to-run-efi_cc-<wbr>and-efi_ld-correctly-when-cros<wbr>s-co.patch<br>
<br>
diff --git a/meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_234.bb"
rel="noreferrer" target="_blank">sy<wbr>stemd-boot_234.bb</a>
b/meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_234.bb"
rel="noreferrer" target="_blank">sy<wbr>stemd-boot_234.bb</a><br>
deleted file mode 100644<br>
index 88a14ac..0000000<br>
--- a/meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_234.bb"
rel="noreferrer" target="_blank">sy<wbr>stemd-boot_234.bb</a><br>
+++ /dev/null<br>
@@ -1,43 +0,0 @@<br>
-require systemd.inc<br>
-FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:"<br>
-<br>
-DEPENDS = "intltool-native libcap util-linux
gnu-efi gperf-native"<br>
-<br>
-SRC_URI += "<a class="moz-txt-link-freetext" href="file://0007-use-lnr-wrapper-i">file://0007-use-lnr-wrapper-i</a><wbr>nstead-of-looking-for-relative<wbr>-opti.patch"<br>
-<br>
-inherit autotools pkgconfig gettext<br>
-inherit deploy<br>
-<br>
-EFI_CC ?= "${CC}"<br>
-# Man pages are packaged through the main systemd
recipe<br>
-EXTRA_OECONF = " --enable-gnuefi \<br>
- --with-efi-includedir=${STAGI<wbr>NG_INCDIR}
\<br>
- --with-efi-ldsdir=${STAGING_L<wbr>IBDIR}
\<br>
- --with-efi-libdir=${STAGING_L<wbr>IBDIR}
\<br>
- --disable-manpages \<br>
- EFI_CC='${EFI_CC}' \<br>
- "<br>
-<br>
-# Imported from the old gummiboot recipe<br>
-TUNE_CCARGS_remove = "-mfpmath=sse"<br>
-COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"<br>
-COMPATIBLE_HOST_x86-x32 = "null"<br>
-<br>
-do_compile() {<br>
- SYSTEMD_BOOT_EFI_ARCH="ia32"<br>
- if [ "${TARGET_ARCH}" = "x86_64" ]; then<br>
- SYSTEMD_BOOT_EFI_ARCH="x64"<br>
- fi<br>
-<br>
- oe_runmake systemd-boot${SYSTEMD_BOOT_EFI<wbr>_ARCH}.efi<br>
-}<br>
-<br>
-do_install() {<br>
- # Bypass systemd installation with a NOP<br>
- :<br>
-}<br>
-<br>
-do_deploy () {<br>
- install ${B}/systemd-boot*.efi
${DEPLOYDIR}<br>
-}<br>
-addtask deploy before do_build after do_compile<br>
diff --git a/meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_236.bb"
rel="noreferrer" target="_blank">sy<wbr>stemd-boot_236.bb</a>
b/meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_236.bb"
rel="noreferrer" target="_blank">sy<wbr>stemd-boot_236.bb</a><br>
new file mode 100644<br>
index 0000000..1a0135a<br>
--- /dev/null<br>
+++ b/meta/recipes-core/systemd/<a
moz-do-not-send="true"
href="http://systemd-boot_236.bb"
rel="noreferrer" target="_blank">sy<wbr>stemd-boot_236.bb</a><br>
@@ -0,0 +1,49 @@<br>
+require systemd.inc<br>
+FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemd:"<br>
+<br>
+DEPENDS = "intltool-native libcap util-linux
gnu-efi gperf-native"<br>
+<br>
+SRC_URI += "<a class="moz-txt-link-freetext" href="file://0003-use-lnr-wrapper-i">file://0003-use-lnr-wrapper-i</a><wbr>nstead-of-looking-for-relative<wbr>-opti.patch
\<br>
+ <a class="moz-txt-link-freetext" href="file://0027-remove-nobody-user">file://0027-remove-nobody-user</a><wbr>-group-checking.patch
\<br>
+ <a class="moz-txt-link-freetext" href="file://0001-Also-check-i586-fo">file://0001-Also-check-i586-fo</a><wbr>r-ia32.patch
\<br>
+ <a class="moz-txt-link-freetext" href="file://0001-Fix-to-run-efi_cc">file://0001-Fix-to-run-efi_cc</a>-<wbr>and-efi_ld-correctly-when-cros<wbr>s-co.patch
\<br>
+ "<br>
+<br>
+inherit meson pkgconfig gettext<br>
+inherit deploy<br>
+<br>
+EFI_CC ?= "${CC}"<br>
+<br>
+EXTRA_OEMESON += "-Defi=true \<br>
+ -Dgnu-efi=true \<br>
+ -Defi-includedir=${STAGING_INC<wbr>DIR}/efi
\<br>
+ -Defi-ldsdir=${STAGING_LIBDIR}
\<br>
+ -Defi-libdir=${STAGING_LIBDIR}
\<br>
+ -Dman=false \<br>
+ -Defi-cc='${EFI_CC}' \<br>
+ -Defi-ld='${LD}' \<br>
+ "<br>
+<br>
+<br>
+# Imported from the old gummiboot recipe<br>
+TUNE_CCARGS_remove = "-mfpmath=sse"<br>
+COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"<br>
+COMPATIBLE_HOST_x86-x32 = "null"<br>
+<br>
+do_compile() {<br>
+ SYSTEMD_BOOT_EFI_ARCH="ia32"<br>
+ if [ "${TARGET_ARCH}" == "x86_64" ]; then<br>
+ SYSTEMD_BOOT_EFI_ARCH="x64"<br>
+ fi<br>
+ ninja src/boot/efi/systemd-boot${SYS<wbr>TEMD_BOOT_EFI_ARCH}.efi<br>
+}<br>
+<br>
+do_install() {<br>
+ # Bypass systemd installation with a NOP<br>
+ :<br>
+}<br>
+<br>
+do_deploy () {<br>
+ install ${B}/src/boot/efi/systemd-boot<wbr>*.efi
${DEPLOYDIR}<br>
+}<br>
+addtask deploy before do_build after do_compile<br>
diff --git a/meta/recipes-core/systemd/sy<wbr>stemd/0001-Also-check-i586-for<wbr>-ia32.patch
b/meta/recipes-core/systemd/sy<wbr>stemd/0001-Also-check-i586-for<wbr>-ia32.patch<br>
new file mode 100644<br>
index 0000000..892b25e<br>
--- /dev/null<br>
+++ b/meta/recipes-core/systemd/sy<wbr>stemd/0001-Also-check-i586-for<wbr>-ia32.patch<br>
@@ -0,0 +1,28 @@<br>
+From 4616e6f228d2678420ee7d5bb1c8a0<wbr>c8ebb27be8
Mon Sep 17 00:00:00 2001<br>
+From: Chen Qi <<a moz-do-not-send="true"
href="mailto:Qi.Chen@windriver.com"
target="_blank">Qi.Chen@windriver.com</a>><br>
+Date: Tue, 27 Feb 2018 20:42:41 -0800<br>
+Subject: [PATCH] Also check i586 for ia32<br>
+<br>
+Upstream-Status: Pending<br>
+<br>
+Signed-off-by: Chen Qi <<a
moz-do-not-send="true"
href="mailto:Qi.Chen@windriver.com"
target="_blank">Qi.Chen@windriver.com</a>><br>
+---<br>
+ meson.build | 2 +-<br>
+ 1 file changed, 1 insertion(+), 1 deletion(-)<br>
+<br>
+diff --git a/meson.build b/meson.build<br>
+index ddc061c12..abd1261d6 100644<br>
+--- a/meson.build<br>
++++ b/meson.build<br>
+@@ -1182,7 +1182,7 @@
conf.set10('SYSTEMD_SLOW_TESTS<wbr>_DEFAULT',
get_option('slow-tests'))<br>
+ if get_option('efi')<br>
+ efi_arch = host_machine.cpu_family()<br>
+<br>
+- if efi_arch == 'x86'<br>
++ if efi_arch == 'x86' or efi_arch ==
'i586'<br>
+ EFI_MACHINE_TYPE_NAME = 'ia32'<br>
+ gnu_efi_arch = 'ia32'<br>
+ elif efi_arch == 'x86_64'<br>
+--<br>
+2.13.0<br>
+<br>
diff --git a/meta/recipes-core/systemd/sy<wbr>stemd/0001-Fix-to-run-efi_cc-<wbr>and-efi_ld-correctly-when-cros<wbr>s-co.patch
b/meta/recipes-core/systemd/sy<wbr>stemd/0001-Fix-to-run-efi_cc-<wbr>and-efi_ld-correctly-when-cros<wbr>s-co.patch<br>
new file mode 100644<br>
index 0000000..e2e19ba<br>
--- /dev/null<br>
+++ b/meta/recipes-core/systemd/sy<wbr>stemd/0001-Fix-to-run-efi_cc-<wbr>and-efi_ld-correctly-when-cros<wbr>s-co.patch<br>
@@ -0,0 +1,62 @@<br>
+From 527413ec243564a89ffaad6368d446<wbr>de44415970
Mon Sep 17 00:00:00 2001<br>
+From: Chen Qi <<a moz-do-not-send="true"
href="mailto:Qi.Chen@windriver.com"
target="_blank">Qi.Chen@windriver.com</a>><br>
+Date: Tue, 27 Feb 2018 21:42:23 -0800<br>
+Subject: [PATCH] Fix to run efi_cc and efi_ld
correctly when cross-compiling<br>
+<br>
+When cross-compiling, efi_cc and efi_ld may take
the form of<br>
+'xxx-gcc --sysroot=xxx', and this would cause
run_command and<br>
+the alike fail.<br>
+<br>
+Fix to split them to make commands run correctly.<br>
+<br>
+Upstream-Status: Pending<br>
+<br>
+Signed-off-by: Chen Qi <<a
moz-do-not-send="true"
href="mailto:Qi.Chen@windriver.com"
target="_blank">Qi.Chen@windriver.com</a>><br>
+---<br>
+ src/boot/efi/meson.build | 16 +++++++++++++---<br>
+ 1 file changed, 13 insertions(+), 3 deletions(-)<br>
+<br>
+diff --git a/src/boot/efi/meson.build
b/src/boot/efi/meson.build<br>
+index 992a3ba4c..9f9ec4911 100644<br>
+--- a/src/boot/efi/meson.build<br>
++++ b/src/boot/efi/meson.build<br>
+@@ -157,7 +157,7 @@ if have_gnu_efi<br>
+ o_file = custom_target(file +
'.o',<br>
+ input :
file,<br>
+ output :
file + '.o',<br>
+- command :
[efi_cc, '-c', '@INPUT@', '-o', '@OUTPUT@']<br>
++ command :
efi_cc.split() + ['-c', '@INPUT@', '-o',
'@OUTPUT@']<br>
+
+ compile_args,<br>
+
depend_files : efi_headers)<br>
+ if (common_sources +
systemd_boot_sources).contains<wbr>(file)<br>
+@@ -168,7 +168,17 @@ if have_gnu_efi<br>
+ endif<br>
+ endforeach<br>
+<br>
+- libgcc_file_name = run_command(efi_cc,
'-print-libgcc-file-name').std<wbr>out().strip()<br>
++ find_libgcc_cmd_all = efi_cc + '
-print-libgcc-file-name'<br>
++ find_libgcc_cmd =
find_libgcc_cmd_all.split()[0]<br>
++ find_libgcc_args = []<br>
++ cmd_args_all =
find_libgcc_cmd_all.split()<br>
++ foreach arg : cmd_args_all<br>
++ if arg != find_libgcc_cmd<br>
++ find_libgcc_args += arg<br>
++ endif<br>
++ endforeach<br>
++<br>
++ libgcc_file_name =
run_command(find_libgcc_cmd,
find_libgcc_args).stdout().str<wbr>ip()<br>
+ systemd_boot_efi_name =
'<a class="moz-txt-link-abbreviated" href="mailto:systemd-boot@0@.efi">systemd-boot@0@.efi</a>'.format(E<wbr>FI_MACHINE_TYPE_NAME)<br>
+ stub_efi_name =
'<a class="moz-txt-link-abbreviated" href="mailto:linux@0@.efi.stub">linux@0@.efi.stub</a>'.format(EFI<wbr>_MACHINE_TYPE_NAME)<br>
+ no_undefined_symbols =
find_program('no-undefined-sym<wbr>bols.sh')<br>
+@@ -179,7 +189,7 @@ if have_gnu_efi<br>
+ tuple[0],<br>
+ input : tuple[2],<br>
+ output : tuple[0],<br>
+- command : [efi_ld, '-o',
'@OUTPUT@'] +<br>
++ command : efi_ld.split()
+ ['-o', '@OUTPUT@'] +<br>
+ efi_ldflags +
tuple[2] +<br>
+ ['-lefi',
'-lgnuefi', libgcc_file_name])<br>
+<br>
+--<br>
+2.13.0<br>
+<br>
<span class="m_569630576848120261HOEnZb"><font
color="#888888">--<br>
1.9.1<br>
<br>
--<br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a moz-do-not-send="true"
href="mailto:Openembedded-core@lists.openembedded.org"
target="_blank">Openembedded-core@lists.openem<wbr>bedded.org</a><br>
<a moz-do-not-send="true"
href="http://lists.openembedded.org/mailman/listinfo/openembedded-core"
rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>