* [PATCH] Add machine qemuarm64
@ 2014-09-12 7:43 Kai Kang
2014-09-12 7:43 ` Kai Kang
2014-09-12 10:22 ` Burton, Ross
0 siblings, 2 replies; 8+ messages in thread
From: Kai Kang @ 2014-09-12 7:43 UTC (permalink / raw)
To: openembedded-core; +Cc: jslater
Add machine qemuarm64. The configure files are derived from linaro.
Update:
* rename genericarmv8 to qemuarm64 for coordination in oe-core
* include qemu.inc then remove common part of config
* disable using autoserial
* move arch-armv8.inc from machine/include/arm64 to machine/include/arm
There are some packages fail to build with qemuarm64, I will send pathches
for them in another series.
Kai Kang (1):
Add machine qemuarm64
meta/conf/bitbake.conf | 1 +
meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++++++++
meta/conf/machine/qemuarm64.conf | 12 ++++++++++++
3 files changed, 33 insertions(+)
create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
create mode 100644 meta/conf/machine/qemuarm64.conf
--
1.9.1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] Add machine qemuarm64
2014-09-12 7:43 [PATCH] Add machine qemuarm64 Kai Kang
@ 2014-09-12 7:43 ` Kai Kang
2014-09-12 10:22 ` Burton, Ross
1 sibling, 0 replies; 8+ messages in thread
From: Kai Kang @ 2014-09-12 7:43 UTC (permalink / raw)
To: openembedded-core; +Cc: jslater
Add machine qemuarm64. The configure files are derived from linaro.
Update:
* rename genericarmv8 to qemuarm64 for coordination in oe-core
* include qemu.inc then remove common part of config
* disable using autoserial
* move arch-armv8.inc from machine/include/arm64 to machine/include/arm
And set BASELIB to lib64 in bitbake.conf. libgcc uses
'aarch64-poky-linux-gcc -print-multi-os-directory' to get install
directory that the value is 'lib64' then cause [installed-vs-shipped]
error. The value is set in gcc source file gcc/config/aarch64/t-aarch64-linux.
[YOCTO #6487]
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta/conf/bitbake.conf | 1 +
meta/conf/machine/include/arm/arch-armv8.inc | 20 ++++++++++++++++++++
meta/conf/machine/qemuarm64.conf | 12 ++++++++++++
3 files changed, 33 insertions(+)
create mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
create mode 100644 meta/conf/machine/qemuarm64.conf
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 468b175..0ae884c 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -10,6 +10,7 @@
baselib = "${BASELIB}"
baselib[vardepvalue] = "${baselib}"
BASELIB = "lib"
+BASELIB_aarch64 = "lib64"
BASELIB_powerpc64 = "lib64"
# Path prefixes
diff --git a/meta/conf/machine/include/arm/arch-armv8.inc b/meta/conf/machine/include/arm/arch-armv8.inc
new file mode 100644
index 0000000..c86142a
--- /dev/null
+++ b/meta/conf/machine/include/arm/arch-armv8.inc
@@ -0,0 +1,20 @@
+DEFAULTTUNE ?= "aarch64"
+
+ARMPKGARCH ?= "aarch64"
+
+TUNEVALID[aarch64] = "Enable instructions for aarch64"
+TUNEVALID[bigendian] = "Enable big-endian mode."
+TUNECONFLICTS[aarch64] = ""
+MACHINEOVERRIDES .= "${@bb.utils.contains("TUNE_FEATURES", "aarch64", ":aarch64", "" ,d)}"
+
+# Little Endian base configs
+AVAILTUNES += "aarch64 aarch64_be"
+TUNE_FEATURES_tune-aarch64 ?= "aarch64"
+TUNE_FEATURES_tune-aarch64_be ?= "${TUNE_FEATURES_tune-aarch64} bigendian"
+
+ARMPKGSFX_ENDIAN = "${@bb.utils.contains("TUNE_FEATURES", "bigendian", "_be", "", d)}"
+
+TUNE_ARCH = "aarch64${ARMPKGSFX_ENDIAN}"
+TUNE_PKGARCH = "aarch64${ARMPKGSFX_ENDIAN}"
+
+PACKAGE_EXTRA_ARCHS = "aarch64${ARMPKGSFX_ENDIAN}"
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf
new file mode 100644
index 0000000..20bcfba
--- /dev/null
+++ b/meta/conf/machine/qemuarm64.conf
@@ -0,0 +1,12 @@
+#@TYPE: Machine
+#@NAME: generic armv8 machine
+#@DESCRIPTION: Machine configuration for running a generic armv8
+
+require conf/machine/include/arm/arch-armv8.inc
+require conf/machine/include/qemu.inc
+
+MACHINE_FEATURES = ""
+
+KERNEL_IMAGETYPE = "Image"
+
+SERIAL_CONSOLE = "38400 ttyAMA0"
--
1.9.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] Add machine qemuarm64
2014-09-12 7:43 [PATCH] Add machine qemuarm64 Kai Kang
2014-09-12 7:43 ` Kai Kang
@ 2014-09-12 10:22 ` Burton, Ross
2014-09-12 10:25 ` Kang Kai
2014-09-12 13:02 ` Bruce Ashfield
1 sibling, 2 replies; 8+ messages in thread
From: Burton, Ross @ 2014-09-12 10:22 UTC (permalink / raw)
To: Kai Kang; +Cc: Joe Slater, OE-core
On 12 September 2014 08:43, Kai Kang <kai.kang@windriver.com> wrote:
> There are some packages fail to build with qemuarm64, I will send pathches
> for them in another series.
I can't build a kernel with MACHINE=qemuarm64:
| LINK vmlinux
| LD vmlinux.o
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
| make[2]: *** [vmlinux] Error 1
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
/data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
do_compile) failed with exit code '1'
I can email build logs if you'd wish.
Ross
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Add machine qemuarm64
2014-09-12 10:22 ` Burton, Ross
@ 2014-09-12 10:25 ` Kang Kai
2014-09-12 10:29 ` Burton, Ross
2014-09-12 13:02 ` Bruce Ashfield
1 sibling, 1 reply; 8+ messages in thread
From: Kang Kai @ 2014-09-12 10:25 UTC (permalink / raw)
To: Burton, Ross; +Cc: Joe Slater, OE-core
On 2014年09月12日 18:22, Burton, Ross wrote:
> On 12 September 2014 08:43, Kai Kang <kai.kang@windriver.com> wrote:
>> There are some packages fail to build with qemuarm64, I will send pathches
>> for them in another series.
> I can't build a kernel with MACHINE=qemuarm64:
>
> | LINK vmlinux
> | LD vmlinux.o
> | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
> | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
> | make[2]: *** [vmlinux] Error 1
> | make[1]: *** [sub-make] Error 2
> | make: *** [all] Error 2
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at
> /data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
> ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
> do_compile) failed with exit code '1'
>
> I can email build logs if you'd wish.
Thanks for try. I just thought to send the patch of gcc to upstream
first then fill the Upstream-Status. I'll send it now.
Sorry for trouble.
--Kai
>
> Ross
>
>
--
Regards,
Neil | Kai Kang
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Add machine qemuarm64
2014-09-12 10:25 ` Kang Kai
@ 2014-09-12 10:29 ` Burton, Ross
2014-09-12 10:32 ` Kang Kai
0 siblings, 1 reply; 8+ messages in thread
From: Burton, Ross @ 2014-09-12 10:29 UTC (permalink / raw)
To: Kang Kai; +Cc: Joe Slater, OE-core
On 12 September 2014 11:25, Kang Kai <Kai.Kang@windriver.com> wrote:
> Thanks for try. I just thought to send the patch of gcc to upstream first
> then fill the Upstream-Status. I'll send it now.
Ah, that would be the problem. :)
Ross
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Add machine qemuarm64
2014-09-12 10:29 ` Burton, Ross
@ 2014-09-12 10:32 ` Kang Kai
0 siblings, 0 replies; 8+ messages in thread
From: Kang Kai @ 2014-09-12 10:32 UTC (permalink / raw)
To: Burton, Ross; +Cc: Joe Slater, OE-core
On 2014年09月12日 18:29, Burton, Ross wrote:
> On 12 September 2014 11:25, Kang Kai <Kai.Kang@windriver.com> wrote:
>> Thanks for try. I just thought to send the patch of gcc to upstream first
>> then fill the Upstream-Status. I'll send it now.
> Ah, that would be the problem. :)
Oops. The patch of gcc is for another issue about directory of
ld-linux-aarch64.so.
I once met this linux-yocto issue but it builds pass after adding
BASELIB_aarch64 = "lib64"
I'll check it.
Thanks,
Kai
>
> Ross
>
>
--
Regards,
Neil | Kai Kang
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Add machine qemuarm64
2014-09-12 10:22 ` Burton, Ross
2014-09-12 10:25 ` Kang Kai
@ 2014-09-12 13:02 ` Bruce Ashfield
2014-09-13 1:30 ` Kang Kai
1 sibling, 1 reply; 8+ messages in thread
From: Bruce Ashfield @ 2014-09-12 13:02 UTC (permalink / raw)
To: Burton, Ross; +Cc: Joe Slater, OE-core
On Fri, Sep 12, 2014 at 6:22 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 12 September 2014 08:43, Kai Kang <kai.kang@windriver.com> wrote:
>> There are some packages fail to build with qemuarm64, I will send pathches
>> for them in another series.
>
> I can't build a kernel with MACHINE=qemuarm64:
Even if this did build, I'm not sure what you'd end up with .. no one
has sent me
the linux-yocto machine definition and configuration fragments for qemuarm64
yet.
Bruce
>
> | LINK vmlinux
> | LD vmlinux.o
> | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
> | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
> | make[2]: *** [vmlinux] Error 1
> | make[1]: *** [sub-make] Error 2
> | make: *** [all] Error 2
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at
> /data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
> ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
> do_compile) failed with exit code '1'
>
> I can email build logs if you'd wish.
>
> Ross
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] Add machine qemuarm64
2014-09-12 13:02 ` Bruce Ashfield
@ 2014-09-13 1:30 ` Kang Kai
0 siblings, 0 replies; 8+ messages in thread
From: Kang Kai @ 2014-09-13 1:30 UTC (permalink / raw)
To: Bruce Ashfield, Burton, Ross; +Cc: He Zhe, Joe Slater, OE-core
On 2014年09月12日 21:02, Bruce Ashfield wrote:
> On Fri, Sep 12, 2014 at 6:22 AM, Burton, Ross <ross.burton@intel.com> wrote:
>> On 12 September 2014 08:43, Kai Kang <kai.kang@windriver.com> wrote:
>>> There are some packages fail to build with qemuarm64, I will send pathches
>>> for them in another series.
>> I can't build a kernel with MACHINE=qemuarm64:
> Even if this did build, I'm not sure what you'd end up with .. no one
> has sent me
> the linux-yocto machine definition and configuration fragments for qemuarm64
> yet.
Could we make all userspace packages build pass and available for
qemuarm64 first, then deal the kernel?
Zhe He is working on kernel and will give configuration later.
Regards,
Kai
>
> Bruce
>
>> | LINK vmlinux
>> | LD vmlinux.o
>> | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
>> | aarch64-poky-linux-ld.bfd: cannot find libgcc.a: No such file or directory
>> | make[2]: *** [vmlinux] Error 1
>> | make[1]: *** [sub-make] Error 2
>> | make: *** [all] Error 2
>> | ERROR: oe_runmake failed
>> | WARNING: exit code 1 from a shell command.
>> | ERROR: Function failed: do_compile (log file is located at
>> /data/poky-master/tmp/work/qemuarm64-poky-linux/linux-yocto/3.14.17+gitAUTOINC+a94680bfeb_b85edae6fd-r0/temp/log.do_compile.24366)
>> ERROR: Task 81 (/home/ross/Yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb,
>> do_compile) failed with exit code '1'
>>
>> I can email build logs if you'd wish.
>>
>> Ross
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
--
Regards,
Neil | Kai Kang
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-09-13 1:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12 7:43 [PATCH] Add machine qemuarm64 Kai Kang
2014-09-12 7:43 ` Kai Kang
2014-09-12 10:22 ` Burton, Ross
2014-09-12 10:25 ` Kang Kai
2014-09-12 10:29 ` Burton, Ross
2014-09-12 10:32 ` Kang Kai
2014-09-12 13:02 ` Bruce Ashfield
2014-09-13 1:30 ` Kang Kai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox