Re: [OE-core] [PATCH] curl: Upgrade to 7.78.0

2021-08-30 Thread Randy Li

> On Aug 2, 2021, at 4:06 PM, Yu, Mingli  wrote:
> 
> From: Mingli Yu 
> 
> Remove libmetalink configure option as this rarely used option is
> removed in the new version [1].
I think we need a PACKAGECONFIG to disable zstd or put it into depend.
Or it would failed at configure stage.
Try with today’s master branch.
> 
> [1] 
> https://github.com/curl/curl/commit/265b14d6b37c4298bd5556fabcbc37d36f911693
> 
> Signed-off-by: Mingli Yu 
> ---
> meta/recipes-support/curl/{curl_7.77.0.bb => curl_7.78.0.bb} | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> rename meta/recipes-support/curl/{curl_7.77.0.bb => curl_7.78.0.bb} (97%)
> 
> diff --git a/meta/recipes-support/curl/curl_7.77.0.bb 
> b/meta/recipes-support/curl/curl_7.78.0.bb
> similarity index 97%
> rename from meta/recipes-support/curl/curl_7.77.0.bb
> rename to meta/recipes-support/curl/curl_7.78.0.bb
> index 6b15a6a3e8..2e2be66102 100644
> --- a/meta/recipes-support/curl/curl_7.77.0.bb
> +++ b/meta/recipes-support/curl/curl_7.78.0.bb
> @@ -13,7 +13,7 @@ SRC_URI = "https://curl.haxx.se/download/curl-${PV}.tar.bz2 
> \
>file://0001-replace-krb5-config-with-pkg-config.patch \
> "
> 
> -SRC_URI[sha256sum] = 
> "6c0c28868cb82593859fc43b9c8fdb769314c855c05cf1b56b023acf855df8ea"
> +SRC_URI[sha256sum] = 
> "98530b317dc95ccb324bbe4f834f07bb642fbc393b794ddf3434f246a71ea44a"
> 
> # Curl has used many names over the years...
> CVE_PRODUCT = "haxx:curl haxx:libcurl curl:curl curl:libcurl libcurl:libcurl 
> daniel_stenberg:curl"
> @@ -61,7 +61,6 @@ EXTRA_OECONF = " \
> --disable-ntlm-wb \
> --enable-crypto-auth \
> --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \
> ---without-libmetalink \
> --without-libpsl \
> --enable-debug \
> --enable-optimize \
> -- 
> 2.17.1
> 
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#155480): 
https://lists.openembedded.org/g/openembedded-core/message/155480
Mute This Topic: https://lists.openembedded.org/mt/84606782/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] systemd-boot: use ld.bfd as efi-ld when gold is being used by default with ld-is-gold

2021-08-04 Thread Randy Li
I found I sent this email to wrong list, let me CC to it.

> On Aug 4, 2021, at 3:28 AM, Martin Jansa  wrote:
> 
> Probably as lld isn't supported as well:
> https://github.com/systemd/systemd/commit/e39288193fcdf3a36dbc49b78e6c9bf86a764e31
> 
You can’t use systemd in Android of course, I decide to ignore those packages 
won’t be used for Android vendor partition.
>> On Tue, Aug 3, 2021 at 9:19 PM Andre McCurdy  wrote:
>> On Tue, Aug 3, 2021 at 12:04 PM Martin Jansa  wrote:
>> >
>> > * since the upgrade to 249.1 in:
>> >   
>> > https://git.openembedded.org/openembedded-core/commit/?id=323ec445dfe22860cd450c303db5ed8fcb4e791c
>> >   the builds with ld-is-gold are failing with:
>> >
>> >   [17/21] Generating linuxx64.elf.stub with a custom command
>> >   FAILED: src/boot/efi/linuxx64.elf.stub
>> >   
>> > /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/systemd-boot/249.1-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld
>> >  -o src/boot/efi/linuxx64.elf.stub -T 
>> > /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/systemd-boot/249.1-r0/recipe-sysroot/usr/lib/elf_x86_64_efi.lds
>> >  -shared -Bsymbolic -nostdlib -znocombreloc --build-id=sha1 -L 
>> > /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/systemd-boot/249.1-r0/recipe-sysroot/usr/lib
>> >  
>> > /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/systemd-boot/249.1-r0/recipe-sysroot/usr/lib/crt0-efi-x86_64.o
>> >  src/boot/efi/string-util-fundamental.c.o src/boot/efi/disk.c.o 
>> > src/boot/efi/graphics.c.o src/boot/efi/measure.c.o src/boot/efi/pe.c.o 
>> > src/boot/efi/secure-boot.c.o src/boot/efi/util.c.o src/boot/efi/linux.c.o 
>> > src/boot/efi/splash.c.o src/boot/efi/stub.c.o -lefi -lgnuefi 
>> > /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/systemd-boot/249.1-r0/recipe-sysroot/usr/lib/../lib/x86_64-oe-linux/11.2.0/libgcc.a
>> >   
>> > /OE/build/oe-core/tmp-glibc/work/core2-64-oe-linux/systemd-boot/249.1-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/x86_64-oe-linux-ld:
>> >  internal error in segment_precedes, at ../../gold/layout.cc:3721
>> >   [18/21] Generating boot.c.o with a custom command
>> >   ninja: build stopped: subcommand failed.
>> >   WARNING: exit code 1 from a shell command.
>> >
>> >   as reported in:
>> >   https://lists.openembedded.org/g/openembedded-core/message/154246
>> >
>> >   work around this by using ld.bfd when ld-is-gold is in DISTRO_FEATURES
>> >
>> > Signed-off-by: Martin Jansa 
>> > ---
>> >  meta/recipes-core/systemd/systemd-boot_249.1.bb | 4 +++-
>> >  1 file changed, 3 insertions(+), 1 deletion(-)
>> >
>> > diff --git a/meta/recipes-core/systemd/systemd-boot_249.1.bb 
>> > b/meta/recipes-core/systemd/systemd-boot_249.1.bb
>> > index d767b5bf8d..18f4fe55ce 100644
>> > --- a/meta/recipes-core/systemd/systemd-boot_249.1.bb
>> > +++ b/meta/recipes-core/systemd/systemd-boot_249.1.bb
>> > @@ -19,11 +19,13 @@ objcopy = ${@meson_array('OBJCOPY', d)}
>> >  EOF
>> >  }
>> >
>> > +EFI_LD = "${@d.getVar('LD').split()[0]}"
>> > +
>> >  EXTRA_OEMESON += "-Defi=true \
>> >-Dgnu-efi=true \
>> >-Defi-includedir=${STAGING_INCDIR}/efi \
>> >-Defi-libdir=${STAGING_LIBDIR} \
>> > -  -Defi-ld=${@ d.getVar('LD').split()[0]} \
>> > +  -Defi-ld=${@bb.utils.contains('DISTRO_FEATURES', 
>> > 'ld-is-gold', 'ld.bfd', '${EFI_LD}', d)} \
>> 
>> Could this just be set to ld.bfd in all cases?
https://github.com/android/ndk/issues/1288
Android has dropped the support for gold linker and it has been marked as 
deprecated for a long time.
I just heard that Gstreamer doesn’t support lld linker but I prefer to solve it 
in Gstreamer.
> 
> 
> 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154436): 
https://lists.openembedded.org/g/openembedded-core/message/154436
Mute This Topic: https://lists.openembedded.org/mt/84646246/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] meta-android-ndk: initial version that could build some simple utility

2021-08-04 Thread Randy Li
Hello All:

It now could compile the libpng and its unit test, I could run it on an Android 
11 board. But there are still many problems waiting for solving.

The building above would fail the OE package QA test. There is not a library 
linker file in Android, all the library files won't have a version suffix, I am 
still finding a method to let this checking being disable for the Android 
target.
You could try it here
https://github.com/hizukiayaka/meta-android-ndk

I am not sure I understand all the variables that were not recorded from the 
reference manuals. So I didn't package the Android NDK toolchain into an OE 
toolchain and I skip the canadian toolchain as I don't think an external 
toolchain would need it. I left many things hardcode in the tcmode file as I 
have no idea how to make the meta-clang not try to build me a new clang cross 
compiler. I am not familiar with LLVM as well, I don't much idea on which 
library comes from where and Google also lacks documents for it.

Let me list those things I am not sure whether I did it right here, please help 
me solve them.
I have to export some variables globally, like HOST_SYS, TARGET_PREFIX, and 
TARGET_OS. I thought the meta-external-clang would help me overwrite them but 
it doesn't.
How would I deal with the package for development? As I said, there is not a 
version suffix in Android's library name, only something likes company name 
would be used for export native libraries to general application. Those 
development packages would have the headers files and some object files, could 
I just remove that QA checking ?
Both HOST_PREFIX and TARGET_PREFIX objdump would be used in some classes but 
android only provides a version. Also, there is an llvm-objcopy(and 
llvm-objdump), I didn't found meta-clang would use it;
Should I package the Android NDK toolchain into clang-cross-${TARGET_ARCH} ? I 
could certainly skip the candian part right?
How to deal with those recipes depending on a kernel module? Although I could 
let the OE build a kernel image it just would not be used anywhere, could I 
just make a dummy target?

Later we could move to the final packing, we should not ship those public 
libraries from the Android NDK and get rid of all the daemon service files. But 
I could just copy what I need from the staging directory so far, we could think 
of this later.


ayaka

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154420): 
https://lists.openembedded.org/g/openembedded-core/message/154420
Mute This Topic: https://lists.openembedded.org/mt/84658370/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] proposal: using oe to build Android vendor image

2021-07-22 Thread Randy Li

> On Jul 23, 2021, at 3:26 AM, Khem Raj  wrote:
> 
> Hi Randy
> 
> Its not clear what you are looking for, perhaps you are looking to
> build some Linux packages and dependencies that can run on Android.
Most of like that.
> meta-mingw does not build for windows target although it can be
> extended, it builds SDK that can be used on windows hosts to build
> packages for linux targets. What you need is perhaps meta-android
> which can provide the android SDK environment into OE and then you can
> leverage the build infra. But if you explain your usecase a bit more
> that may bring more ways to solve your problem
For example, if I want to build and setup a media service in a Android 
system(or a AI service), it could depend on a framework likes FFMpeg, Gstreamer 
or VideoLan, that framework would depend on more packages.
Then I just create a image target, oe would build all those packages, install 
them into a stagging dir then pack in into a image. That image would not 
included some Android system library likes library C and C++, and the other 
library vendor should not have its own version(likes OpenGL ES, libjpeg ? 
OpenMAX)
I think the first thing I need to care is how to use that external clang baesd 
toolchain from Android NDK. We can’t use our build one, it must follow 
Android’s ABI strictly or it can’t fix into Android update. 
meta-external-toolchain is for gcc, I am looking at how to add an clang version.
> 
>> On Thu, Jul 22, 2021 at 6:39 AM Randy Li  wrote:
>> 
>> Hello All
>> 
>> I am working with video, graphics and AI stuff all the time, although 
>> Android has many good frameworks and published some good standards to 
>> following(as long as you could understand its documents). I am sure we would 
>> like still to use those packages that we are familiar with at GNU Linux. For 
>> example, if we want to use the Gstreamer on Android, you would need to 
>> compile a bulk of dependency packages. Although I don't know a vendor would 
>> like to ship those frameworks in their product, they are very useful at the 
>> development stage. I am sure AI staff would like this, there are too many 
>> neural network frameworks for different platforms. Those frameworks may 
>> depend on the other neural network framework for model parsing.
>> 
>> There is a project from Gstreamer called Cerbero, people may have already 
>> known that. It has done the most of work I want, but  I just don't want to 
>> port so many recipes to it.
>> 
>> I am not sure what I need to do, what the meta-mingw did may not be enough 
>> for me. Do I need to start up a new distribution? There is not a library C 
>> nor linker loader in the vendor's partition and many install files for 
>> general Linux won't be used in Android.  The meta-clang may need to be 
>> adopted as it would use an external Android NDK toolchain. And I don't need 
>> to support many target platforms based on Android One policy, only limited 
>> ABIs would be supported and no CPU variant tuning would be used.
>> After we could run that software only depending on the kernel's API, I think 
>> I could move forward to support building those HAL modules(likes hardware 
>> decoders and encoders for codec2). That would require us to separate those 
>> codes from Android SDK repositories. Packing the APEX file should be in plan 
>> as well.
>> 
>> ayaka
>> 
>> 
>> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154105): 
https://lists.openembedded.org/g/openembedded-core/message/154105
Mute This Topic: https://lists.openembedded.org/mt/84379033/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] proposal: using oe to build Android vendor image

2021-07-22 Thread Randy Li
Hello All

I am working with video, graphics and AI stuff all the time, although Android 
has many good frameworks and published some good standards to following(as long 
as you could understand its documents). I am sure we would like still to use 
those packages that we are familiar with at GNU Linux. For example, if we want 
to use the Gstreamer on Android, you would need to compile a bulk of dependency 
packages. Although I don't know a vendor would like to ship those frameworks in 
their product, they are very useful at the development stage. I am sure AI 
staff would like this, there are too many neural network frameworks for 
different platforms. Those frameworks may depend on the other neural network 
framework for model parsing.

There is a project from Gstreamer called Cerbero, people may have already known 
that. It has done the most of work I want, but  I just don't want to port so 
many recipes to it. 

I am not sure what I need to do, what the meta-mingw did may not be enough for 
me. Do I need to start up a new distribution? There is not a library C nor 
linker loader in the vendor's partition and many install files for general 
Linux won't be used in Android.  The meta-clang may need to be adopted as it 
would use an external Android NDK toolchain. And I don't need to support many 
target platforms based on Android One policy, only limited ABIs would be 
supported and no CPU variant tuning would be used.
After we could run that software only depending on the kernel's API, I think I 
could move forward to support building those HAL modules(likes hardware 
decoders and encoders for codec2). That would require us to separate those 
codes from Android SDK repositories. Packing the APEX file should be in plan as 
well.

ayaka

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154059): 
https://lists.openembedded.org/g/openembedded-core/message/154059
Mute This Topic: https://lists.openembedded.org/mt/84379033/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v4] seatd: add seatd recipe

2021-04-29 Thread Randy Li
Seat management takes care of mediating access to shared
devices (graphics, input), without requiring the applications
needing access to be root.

Signed-off-by: ayaka 
---
 meta/recipes-core/seatd/libseat/init | 50 
 meta/recipes-core/seatd/libseat_0.5.0.bb | 42 
 2 files changed, 92 insertions(+)
 create mode 100644 meta/recipes-core/seatd/libseat/init
 create mode 100644 meta/recipes-core/seatd/libseat_0.5.0.bb

diff --git a/meta/recipes-core/seatd/libseat/init 
b/meta/recipes-core/seatd/libseat/init
new file mode 100644
index 00..8c9d77255d
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat/init
@@ -0,0 +1,50 @@
+#!/bin/sh
+#
+### BEGIN INIT INFO
+# Provides:  seatd
+# Short-Description: Start seat management daemon
+# Required-Start:$local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+test -x /usr/bin/seatd || exit 0
+
+# For configuration of the init script use the file
+# /etc/default/seatd, do not edit this init script.
+
+seatd_group="seatd"
+
+[ -e /etc/default/seatd ] && . /etc/default/seatd
+
+NAME=seatd
+DAEMON=/usr/bin/seatd
+STOP_RETRY_SCHEDULE='TERM/10/forever/KILL/1'
+
+. /etc/init.d/functions
+
+case "$1" in
+  start)
+start-stop-daemon --start --backgroud --quiet --pidfile /var/run/$NAME.pid 
\
+   --exec $DAEMON -- -g $seatd_group
+;;
+
+  stop)
+killproc $NAME
+;;
+
+  restart)
+$0 stop
+sleep 1
+$0 start
+;;
+  *)
+echo "Usage: $0 {start|stop|restart}"
+exit 1
+
+esac
+
+exit 0
diff --git a/meta/recipes-core/seatd/libseat_0.5.0.bb 
b/meta/recipes-core/seatd/libseat_0.5.0.bb
new file mode 100644
index 00..fb637d5ca7
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat_0.5.0.bb
@@ -0,0 +1,42 @@
+SUMMARY = "Seat management daemon and library"
+HOMEPAGE = "https://git.sr.ht/~kennylevinsen/seatd;
+SECTION = "base"
+
+DESCRIPTION = "A minimal seat management daemon, and a universal seat 
management \
+library. Seat management takes care of mediating access to shared devices \
+(graphics, input), without requiring the applications needing access to be 
root."
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://LICENSE;beginline=3;md5=6a01e8ccc65bea4e8bfa79b09ea1444c"
+
+SRCREV = "355cc9c944a29d29736de84e782a2e91168f1a59"
+SRCBRANCH = "master"
+SRC_URI = 
"git://git.sr.ht/~kennylevinsen/seatd;protocol=http;branch=${SRCBRANCH} \
+   file://init"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig meson useradd update-rc.d
+
+PACKAGECONFIG ??= "${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager', 
'systemd', 'systemd', 'seatd', d)}"
+
+PACKAGECONFIG[seatd] = "-Dseatd=enabled -Dserver=enabled, -Dseatd=disabled 
-Dserver=disabled"
+PACKAGECONFIG[systemd] = "-Dlogind=systemd, -Dlogind=disabled, systemd dbus"
+
+PACKAGES += "seatd"
+
+FILES_${PN} = "${libdir}/lib*${SOLIBS}"
+FILES_seatd = "${bindir}/seatd ${sysconfdir}"
+
+do_install_append() {
+   if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
+   install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/seatd
+   fi
+}
+
+INITSCRIPT_NAME = "seatd"
+INITSCRIPT_PARAMS = "start 8 5 2 . stop 21 0 1 6 ."
+
+USERADD_PACKAGES = "seatd"
+
+GROUPADD_PARAM_seatd = "-r seatd"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#151113): 
https://lists.openembedded.org/g/openembedded-core/message/151113
Mute This Topic: https://lists.openembedded.org/mt/82461979/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v3] seatd: add seatd recipe

2021-04-29 Thread Randy Li

On 4/26/21 2:31 AM, Kenny Levinsen wrote:
On Wed, Apr 21 2021 at 09:34:41 AM +0800, ayaka  
wrote:
I also sent this patch to the upstream, seatd is the server of 
libseat, besides you could build a libseat with a embedded server 
without shipping the seatd.


I have applied a more specific fix upsteam, so unrelated (but not 
unwanted!) backend option rework can be dealt with separately.


With that in mind, considering you were based on master anyway, you 
should now be able to make the recipe without local patches.




I would send out a new recipe today

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#151092): 
https://lists.openembedded.org/g/openembedded-core/message/151092
Mute This Topic: https://lists.openembedded.org/mt/82248929/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v3] seatd: add seatd recipe

2021-04-20 Thread Randy Li


On 4/21/21 9:26 AM, Joshua Watt wrote:



On 4/20/21 6:43 PM, Randy Li wrote:

Seat management takes care of mediating access to shared devices
(graphics, input), without requiring the applications needing access to
be root.

weston would depend on it as well as wlroots.

Signed-off-by: Randy Li
---
  ...build-fixup-standalone-without-seatd.patch | 71 +++
  meta/recipes-core/seatd/libseat/init  | 50 +
  meta/recipes-core/seatd/libseat_0.5.0.bb  | 43 +++
  3 files changed, 164 insertions(+)
  create mode 100644 
meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
  create mode 100644 meta/recipes-core/seatd/libseat/init
  create mode 100644 meta/recipes-core/seatd/libseat_0.5.0.bb

diff --git 
a/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
 
b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
new file mode 100644
index 00..66e1ac73ab
--- /dev/null
+++ 
b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
@@ -0,0 +1,71 @@
+From 084df8ab271ce4b09c1ef5d9c5a859b2d02d20e7 Mon Sep 17 00:00:00 2001
+From: ayaka
+Date: Mon, 19 Apr 2021 22:15:46 +0800
+Subject: [PATCH] build: fixup standalone without seatd
+
+I think that server option means the same thing as seatd, so I
+get rid of it.


I don't understand the purpose of this patch; why do we need to get 
rid of the server?


I also sent this patch to the upstream, seatd is the server of libseat, 
besides you could build a libseat with a embedded server without 
shipping the seatd.


Then the feature opinions "server" and "seatd" are both controlling the 
same thing.


I sent this patch because I tended to use the built-in version for 
sysvinit before, but later the maintainer make a decision that built-in 
server would be removed in the future. Anyway, those two opinions are 
still duplicated.



+---
+ meson.build   | 10 +-
+ meson_options.txt |  1 -
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 7a70cb6..a2166c5 100644
+--- a/meson.build
 b/meson.build
+@@ -104,10 +104,11 @@ server_files = [
+
+ with_seatd = get_option('seatd') == 'enabled'
+ with_builtin = get_option('builtin') == 'enabled'
+-with_server = get_option('server') == 'enabled'
+
+-if with_seatd
++if with_seatd or with_builtin
+   private_files += 'libseat/backend/seatd.c'
++endif
++if with_seatd
+   add_project_arguments('-DSEATD_ENABLED=1', language: 'c')
+ endif
+
+@@ -189,7 +190,7 @@ libseat = declare_dependency(
+   variables: libseat_vars,
+ )
+
+-if with_server
++if with_seatd
+   executable(
+   'seatd',
+   [ server_files, 'seatd/seatd.c' ],
+@@ -221,7 +222,7 @@ foreach name, value : tests
+   include_directories: [include_directories('.', 'include')]))
+ endforeach
+
+-if with_server
++if with_seatd
+   scdoc = dependency('scdoc', required: get_option('man-pages'), version: 
'>= 1.9.7', native: true)
+ else
+   scdoc = disabler()
+@@ -252,7 +253,6 @@ endif
+ summary({
+   'seatd': with_seatd,
+   'builtin': with_builtin,
+-  'server': with_server,
+   'systemd': logind.found() and logind_provider == 'systemd',
+   'elogind': logind.found() and logind_provider == 'elogind',
+ }, bool_yn: true)
+diff --git a/meson_options.txt b/meson_options.txt
+index 144ce7a..c61d473 100644
+--- a/meson_options.txt
 b/meson_options.txt
+@@ -1,7 +1,6 @@
+ option('logind', type: 'combo', choices: ['auto', 'disabled', 'elogind', 
'systemd'], value: 'auto', description: 'logind support')
+ option('seatd', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd support')
+ option('builtin', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'builtin seatd server')
+-option('server', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd server')
+ option('examples', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'libseat example programs')
+ option('man-pages', type: 'feature', value: 'auto', description: 'Generate 
and install man pages')
+ option('defaultpath', type: 'string', value: '', description: 'Default 
location for seatd socket (empty for default)')
+--
+2.30.2
+
diff --git a/meta/recipes-core/seatd/libseat/init 
b/meta/recipes-core/seatd/libseat/init
new file mode 100644
index 00..8c9d77255d
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat/init
@@ -0,0 +1,50 @@
+#!/bin/sh
+#
+### BEGIN INIT INFO
+# Provides:  seatd
+# Short-Description: Start seat management daemon
+# Required-Start:$local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+test -x /usr/bin/seatd || exit 0

[OE-core] [PATCH v3] seatd: add seatd recipe

2021-04-20 Thread Randy Li
Seat management takes care of mediating access to shared devices
(graphics, input), without requiring the applications needing access to
be root.

weston would depend on it as well as wlroots.

Signed-off-by: Randy Li 
---
 ...build-fixup-standalone-without-seatd.patch | 71 +++
 meta/recipes-core/seatd/libseat/init  | 50 +
 meta/recipes-core/seatd/libseat_0.5.0.bb  | 43 +++
 3 files changed, 164 insertions(+)
 create mode 100644 
meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
 create mode 100644 meta/recipes-core/seatd/libseat/init
 create mode 100644 meta/recipes-core/seatd/libseat_0.5.0.bb

diff --git 
a/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
 
b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
new file mode 100644
index 00..66e1ac73ab
--- /dev/null
+++ 
b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
@@ -0,0 +1,71 @@
+From 084df8ab271ce4b09c1ef5d9c5a859b2d02d20e7 Mon Sep 17 00:00:00 2001
+From: ayaka 
+Date: Mon, 19 Apr 2021 22:15:46 +0800
+Subject: [PATCH] build: fixup standalone without seatd
+
+I think that server option means the same thing as seatd, so I
+get rid of it.
+---
+ meson.build   | 10 +-
+ meson_options.txt |  1 -
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 7a70cb6..a2166c5 100644
+--- a/meson.build
 b/meson.build
+@@ -104,10 +104,11 @@ server_files = [
+ 
+ with_seatd = get_option('seatd') == 'enabled'
+ with_builtin = get_option('builtin') == 'enabled'
+-with_server = get_option('server') == 'enabled'
+ 
+-if with_seatd
++if with_seatd or with_builtin
+   private_files += 'libseat/backend/seatd.c'
++endif
++if with_seatd
+   add_project_arguments('-DSEATD_ENABLED=1', language: 'c')
+ endif
+ 
+@@ -189,7 +190,7 @@ libseat = declare_dependency(
+   variables: libseat_vars,
+ )
+ 
+-if with_server
++if with_seatd
+   executable(
+   'seatd',
+   [ server_files, 'seatd/seatd.c' ],
+@@ -221,7 +222,7 @@ foreach name, value : tests
+   include_directories: [include_directories('.', 'include')]))
+ endforeach
+ 
+-if with_server
++if with_seatd
+   scdoc = dependency('scdoc', required: get_option('man-pages'), version: 
'>= 1.9.7', native: true)
+ else
+   scdoc = disabler()
+@@ -252,7 +253,6 @@ endif
+ summary({
+   'seatd': with_seatd,
+   'builtin': with_builtin,
+-  'server': with_server,
+   'systemd': logind.found() and logind_provider == 'systemd',
+   'elogind': logind.found() and logind_provider == 'elogind',
+ }, bool_yn: true)
+diff --git a/meson_options.txt b/meson_options.txt
+index 144ce7a..c61d473 100644
+--- a/meson_options.txt
 b/meson_options.txt
+@@ -1,7 +1,6 @@
+ option('logind', type: 'combo', choices: ['auto', 'disabled', 'elogind', 
'systemd'], value: 'auto', description: 'logind support')
+ option('seatd', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd support')
+ option('builtin', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'builtin seatd server')
+-option('server', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd server')
+ option('examples', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'libseat example programs')
+ option('man-pages', type: 'feature', value: 'auto', description: 'Generate 
and install man pages')
+ option('defaultpath', type: 'string', value: '', description: 'Default 
location for seatd socket (empty for default)')
+-- 
+2.30.2
+
diff --git a/meta/recipes-core/seatd/libseat/init 
b/meta/recipes-core/seatd/libseat/init
new file mode 100644
index 00..8c9d77255d
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat/init
@@ -0,0 +1,50 @@
+#!/bin/sh
+#
+### BEGIN INIT INFO
+# Provides:  seatd
+# Short-Description: Start seat management daemon
+# Required-Start:$local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+test -x /usr/bin/seatd || exit 0
+
+# For configuration of the init script use the file
+# /etc/default/seatd, do not edit this init script.
+
+seatd_group="seatd"
+
+[ -e /etc/default/seatd ] && . /etc/default/seatd
+
+NAME=seatd
+DAEMON=/usr/bin/seatd
+STOP_RETRY_SCHEDULE='TERM/10/forever/KILL/1'
+
+. /etc/init.d/functions
+
+case "$1" in
+  start)
+start-stop-daemon --start --backgroud --quiet --pidfile /var/run/$NAME.pid 
\
+   --exec $DAEMON -- -g $seatd_group
+;;
+
+  stop)
+killproc $NAME
+;;
+
+  restart)
+$0 stop
+sleep 1
+$0 start
+;;
+  *)
+echo "Usage: $0 {start|stop|restart}"
+exit 1
+
+esac
+
+ex

Re: [OE-core] [PATCH v2] seatd: add seatd recipe

2021-04-20 Thread Randy Li


On 4/21/21 3:16 AM, Alexander Kanavin wrote:
That's fine then but please resend the patch without the erroneous 
nativesdk-packagegroup tweak.

Oops, my fault, that is a X related issue, I would send a patch later


Alex

On Tue, 20 Apr 2021 at 19:43, Simon Ser > wrote:


Additional note: libseat is already mandatory for wlroots.

+}
+
+INITSCRIPT_NAME = "seatd"
+INITSCRIPT_PARAMS = "start 8 5 2 . stop 21 0 1 6 ."


We are all fine with the priority I set here ? Because we need to start 
before weston and should end after weston quit, I choose 8 and 21 here.


Besides, when build for the systemd version, seatd would be an empty 
package.



+
+USERADD_PACKAGES = "seatd"
+
+GROUPADD_PARAM_seatd = "-r seatd"

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150723): 
https://lists.openembedded.org/g/openembedded-core/message/150723
Mute This Topic: https://lists.openembedded.org/mt/82238840/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2] seatd: add seatd recipe

2021-04-20 Thread Randy Li
From: ayaka 

Weston would adapt the libseat for granting privilege and VT switch.
wlroots has merged it.

Signed-off-by: ayaka 
---
 .../nativesdk-packagegroup-sdk-host.bb|  2 -
 ...build-fixup-standalone-without-seatd.patch | 71 +++
 meta/recipes-core/seatd/libseat/init  | 50 +
 meta/recipes-core/seatd/libseat_0.5.0.bb  | 43 +++
 4 files changed, 164 insertions(+), 2 deletions(-)
 create mode 100644 
meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
 create mode 100644 meta/recipes-core/seatd/libseat/init
 create mode 100644 meta/recipes-core/seatd/libseat_0.5.0.bb

diff --git a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb 
b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
index ae989011f4..3e4e148c45 100644
--- a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
+++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
@@ -11,8 +11,6 @@ PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"
 
 RDEPENDS_${PN} = "\
 nativesdk-pkgconfig \
-nativesdk-qemu \
-nativesdk-qemu-helper \
 nativesdk-pseudo \
 nativesdk-unfs3 \
 nativesdk-opkg \
diff --git 
a/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
 
b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
new file mode 100644
index 00..66e1ac73ab
--- /dev/null
+++ 
b/meta/recipes-core/seatd/libseat/0001-build-fixup-standalone-without-seatd.patch
@@ -0,0 +1,71 @@
+From 084df8ab271ce4b09c1ef5d9c5a859b2d02d20e7 Mon Sep 17 00:00:00 2001
+From: ayaka 
+Date: Mon, 19 Apr 2021 22:15:46 +0800
+Subject: [PATCH] build: fixup standalone without seatd
+
+I think that server option means the same thing as seatd, so I
+get rid of it.
+---
+ meson.build   | 10 +-
+ meson_options.txt |  1 -
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 7a70cb6..a2166c5 100644
+--- a/meson.build
 b/meson.build
+@@ -104,10 +104,11 @@ server_files = [
+ 
+ with_seatd = get_option('seatd') == 'enabled'
+ with_builtin = get_option('builtin') == 'enabled'
+-with_server = get_option('server') == 'enabled'
+ 
+-if with_seatd
++if with_seatd or with_builtin
+   private_files += 'libseat/backend/seatd.c'
++endif
++if with_seatd
+   add_project_arguments('-DSEATD_ENABLED=1', language: 'c')
+ endif
+ 
+@@ -189,7 +190,7 @@ libseat = declare_dependency(
+   variables: libseat_vars,
+ )
+ 
+-if with_server
++if with_seatd
+   executable(
+   'seatd',
+   [ server_files, 'seatd/seatd.c' ],
+@@ -221,7 +222,7 @@ foreach name, value : tests
+   include_directories: [include_directories('.', 'include')]))
+ endforeach
+ 
+-if with_server
++if with_seatd
+   scdoc = dependency('scdoc', required: get_option('man-pages'), version: 
'>= 1.9.7', native: true)
+ else
+   scdoc = disabler()
+@@ -252,7 +253,6 @@ endif
+ summary({
+   'seatd': with_seatd,
+   'builtin': with_builtin,
+-  'server': with_server,
+   'systemd': logind.found() and logind_provider == 'systemd',
+   'elogind': logind.found() and logind_provider == 'elogind',
+ }, bool_yn: true)
+diff --git a/meson_options.txt b/meson_options.txt
+index 144ce7a..c61d473 100644
+--- a/meson_options.txt
 b/meson_options.txt
+@@ -1,7 +1,6 @@
+ option('logind', type: 'combo', choices: ['auto', 'disabled', 'elogind', 
'systemd'], value: 'auto', description: 'logind support')
+ option('seatd', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd support')
+ option('builtin', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'builtin seatd server')
+-option('server', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd server')
+ option('examples', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'libseat example programs')
+ option('man-pages', type: 'feature', value: 'auto', description: 'Generate 
and install man pages')
+ option('defaultpath', type: 'string', value: '', description: 'Default 
location for seatd socket (empty for default)')
+-- 
+2.30.2
+
diff --git a/meta/recipes-core/seatd/libseat/init 
b/meta/recipes-core/seatd/libseat/init
new file mode 100644
index 00..8c9d77255d
--- /dev/null
+++ b/meta/recipes-core/seatd/libseat/init
@@ -0,0 +1,50 @@
+#!/bin/sh
+#
+### BEGIN INIT INFO
+# Provides:  seatd
+# Short-Description: Start seat management daemon
+# Required-Start:$local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop:  0 1 6
+### END INIT INFO
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+test -x /usr/bin/seatd || exit 0
+
+# For configuration of the init script use the file
+# /etc/default/seatd, do not edit this init script.
+
+seatd_group="seatd"
+
+[ -e 

[OE-core] [PATCH] seatd: add seatd recipe

2021-04-20 Thread Randy Li
From: ayaka 

Weston would adapt the libseat for granting privilege and VT switch.
wlroots has merged it.

Signed-off-by: ayaka 
---
 ...build-fixup-standalone-without-seatd.patch | 71 +++
 meta/recipes-core/seatd/seatd_0.5.0.bb| 33 +
 2 files changed, 104 insertions(+)
 create mode 100644 
meta/recipes-core/seatd/seatd/0001-build-fixup-standalone-without-seatd.patch
 create mode 100644 meta/recipes-core/seatd/seatd_0.5.0.bb

diff --git 
a/meta/recipes-core/seatd/seatd/0001-build-fixup-standalone-without-seatd.patch 
b/meta/recipes-core/seatd/seatd/0001-build-fixup-standalone-without-seatd.patch
new file mode 100644
index 00..66e1ac73ab
--- /dev/null
+++ 
b/meta/recipes-core/seatd/seatd/0001-build-fixup-standalone-without-seatd.patch
@@ -0,0 +1,71 @@
+From 084df8ab271ce4b09c1ef5d9c5a859b2d02d20e7 Mon Sep 17 00:00:00 2001
+From: ayaka 
+Date: Mon, 19 Apr 2021 22:15:46 +0800
+Subject: [PATCH] build: fixup standalone without seatd
+
+I think that server option means the same thing as seatd, so I
+get rid of it.
+---
+ meson.build   | 10 +-
+ meson_options.txt |  1 -
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 7a70cb6..a2166c5 100644
+--- a/meson.build
 b/meson.build
+@@ -104,10 +104,11 @@ server_files = [
+ 
+ with_seatd = get_option('seatd') == 'enabled'
+ with_builtin = get_option('builtin') == 'enabled'
+-with_server = get_option('server') == 'enabled'
+ 
+-if with_seatd
++if with_seatd or with_builtin
+   private_files += 'libseat/backend/seatd.c'
++endif
++if with_seatd
+   add_project_arguments('-DSEATD_ENABLED=1', language: 'c')
+ endif
+ 
+@@ -189,7 +190,7 @@ libseat = declare_dependency(
+   variables: libseat_vars,
+ )
+ 
+-if with_server
++if with_seatd
+   executable(
+   'seatd',
+   [ server_files, 'seatd/seatd.c' ],
+@@ -221,7 +222,7 @@ foreach name, value : tests
+   include_directories: [include_directories('.', 'include')]))
+ endforeach
+ 
+-if with_server
++if with_seatd
+   scdoc = dependency('scdoc', required: get_option('man-pages'), version: 
'>= 1.9.7', native: true)
+ else
+   scdoc = disabler()
+@@ -252,7 +253,6 @@ endif
+ summary({
+   'seatd': with_seatd,
+   'builtin': with_builtin,
+-  'server': with_server,
+   'systemd': logind.found() and logind_provider == 'systemd',
+   'elogind': logind.found() and logind_provider == 'elogind',
+ }, bool_yn: true)
+diff --git a/meson_options.txt b/meson_options.txt
+index 144ce7a..c61d473 100644
+--- a/meson_options.txt
 b/meson_options.txt
+@@ -1,7 +1,6 @@
+ option('logind', type: 'combo', choices: ['auto', 'disabled', 'elogind', 
'systemd'], value: 'auto', description: 'logind support')
+ option('seatd', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd support')
+ option('builtin', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'builtin seatd server')
+-option('server', type: 'combo', choices: ['enabled', 'disabled'], value: 
'enabled', description: 'seatd server')
+ option('examples', type: 'combo', choices: ['enabled', 'disabled'], value: 
'disabled', description: 'libseat example programs')
+ option('man-pages', type: 'feature', value: 'auto', description: 'Generate 
and install man pages')
+ option('defaultpath', type: 'string', value: '', description: 'Default 
location for seatd socket (empty for default)')
+-- 
+2.30.2
+
diff --git a/meta/recipes-core/seatd/seatd_0.5.0.bb 
b/meta/recipes-core/seatd/seatd_0.5.0.bb
new file mode 100644
index 00..edda037a0a
--- /dev/null
+++ b/meta/recipes-core/seatd/seatd_0.5.0.bb
@@ -0,0 +1,33 @@
+SUMMARY = "Seat management daemon and library"
+HOMEPAGE = "https://git.sr.ht/~kennylevinsen/seatd;
+SECTION = "base"
+
+DESCRIPTION = "A minimal seat management daemon, and a universal seat 
management \
+library. Seat management takes care of mediating access to shared devices \
+(graphics, input), without requiring the applications needing access to be 
root."
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://LICENSE;beginline=3;md5=6a01e8ccc65bea4e8bfa79b09ea1444c"
+
+SRCREV = "5535c2c3b19b42ebfe4c451600059e9418e401a6"
+SRCBRANCH = "master"
+SRC_URI = 
"git://git.sr.ht/~kennylevinsen/seatd;protocol=http;branch=${SRCBRANCH} \
+   file://0001-build-fixup-standalone-without-seatd.patch"
+
+S = "${WORKDIR}/git"
+
+inherit pkgconfig meson
+
+EXTRA_OEMESON += " -Dbuiltin=enabled"
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
+
+PACKAGECONFIG[seatd] = "-Dseatd=enabled, -Dseatd=disabled"
+PACKAGECONFIG[systemd] = "-Dlogind=systemd, -Dlogind=disabled, systemd dbus"
+
+PACKAGES += "libseat libseat-dev"
+
+FILES_libseat-dev += "${FILES_SOLIBSDEV} ${includedir} ${libdir}/pkgconfig" 
+FILES_libseat =  "${libdir}/lib*${SOLIBS}"
+
+FILES_${PN} = "${bindir}/seatd"
-- 
2.30.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: 

Re: [OE-core] [PATCH v2 0/2] meson: fixup nativesdk sysroot

2020-12-30 Thread Randy Li


> On Dec 31, 2020, at 12:43 PM, Saini, Naveen Kumar 
>  wrote:
> 
> This failing in case of non-native sdk too, where PKG_CONFIG_SYSROOT_DIR is 
> also exported. It does not prepend PKG_CONFIG_SYSROOT_DIR path. 
> 
> I think it should be fixed manually by prepending sysroot path. 
I was having such plan but Gstreamer people said it should be fixed in OE itself
https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1253

> 
> +  pkgconf_sysroot = run_command(python3, '-c', 'import os; 
> print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip()
>   mfx_incdir = mfx_dep.get_pkgconfig_variable('includedir')
> +  mfx_incdir = pkgconf_sysroot +  mfx_incdir
> 
Sorry, I don’t what the non-native sdk means here, since 
get_pkgconfig_variable('includedir') from meson would apply the pkgconfig 
sysroot setting from the meson, it would be fine.
> 
> Ref: 
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch#n26
> 
> 
>> -Original Message-
>> From: openembedded-core@lists.openembedded.org > c...@lists.openembedded.org> On Behalf Of Randy Li
>> Sent: Thursday, December 31, 2020 9:46 AM
>> To: Richard Purdie 
>> Cc: openembedded-core@lists.openembedded.org
>> Subject: Re: [OE-core] [PATCH v2 0/2] meson: fixup nativesdk sysroot
>> 
>> 
>>> On Dec 30, 2020, at 10:05 PM, Richard Purdie
>>  wrote:
>>> 
>>>> On Tue, 2020-12-29 at 11:55 +0800, Randy Li wrote:
>>>> I still saw the request for this patch from Gstreamer users
>>>> sometimes. I have verified this version would work fine.
>>>> 
>>>> Only the exported SDK would need this patch.
>>> 
>>> Thanks for the patches, is there something we should add to the
>>> automated tests (e.g. in meta/lib/oeqa/sdk/cases) to test this?
>>> 
>> The original case is that when I was compiling the Gstreamer plugins bad for
>> Intel Media SDK, the include path from the pkg-config would be one without
>> sysroot. Most of packages won’t meet such problem, they can just ordinary
>> includedir, which is not from meson but compiler I think, then prepend a
>> package name when its code include thems.
>> 
>> I think this case only fix those package using meson and need to get
>> something likes path information from the pkg-config.
>> 
>> I have not read the QA part, so I don’t know what is necessary for such case.
>> Maybe a check for the environment variables from all those auto build tools ?
>> I need to read and make the right comment as well as I welcome the idea
>> from the others.
>>> Cheers,
>>> 
>>> Richard
>>> 
>> Sincerely
>> Randy

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146321): 
https://lists.openembedded.org/g/openembedded-core/message/146321
Mute This Topic: https://lists.openembedded.org/mt/79284744/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v2 1/2] meson: don't turn sting into a list in nativesdk

2020-12-30 Thread Randy Li


On Dec 31, 2020, at 7:38 AM, Peter Kjellerstedt  
wrote:

>> -Original Message-
>> From: openembedded-core@lists.openembedded.org > c...@lists.openembedded.org> On Behalf Of Randy Li
>> Sent: den 29 december 2020 04:56
>> To: openembedded-core@lists.openembedded.org
>> Cc: Randy Li 
>> Subject: [OE-core] [PATCH v2 1/2] meson: don't turn sting into a list in
>> nativesdk
> 
> Change "sting" to "string".
> 
Thanks, I noted that just after I sent it, but I think maintainers or someone 
would correct it when it is merged.
>> 
>> In the current version of meson, some path variables only
>> accept a string not a list.
>> 
>> Signed-off-by: Randy Li 
>> ---
>> meta/recipes-devtools/meson/meson/meson-setup.py | 10 +++---
>> 1 file changed, 7 insertions(+), 3 deletions(-)
>> 
>> diff --git a/meta/recipes-devtools/meson/meson/meson-setup.py
>> b/meta/recipes-devtools/meson/meson/meson-setup.py
>> index 808e2a062f..7acfe373fa 100755
>> --- a/meta/recipes-devtools/meson/meson/meson-setup.py
>> +++ b/meta/recipes-devtools/meson/meson/meson-setup.py
>> @@ -10,9 +10,13 @@ class Template(string.Template):
>> class Environ():
>> def __getitem__(self, name):
>> val = os.environ[name]
>> -val = ["'%s'" % x for x in val.split()]
>> -val = ', '.join(val)
>> -val = '[%s]' % val
>> +val = val.split()
>> +if len(val) > 1:
>> +val = ["'%s'" % x for x in val]
>> +val = ', '.join(val)
>> +val = '[%s]' % val
>> +else:
>> +if val: val = "'%s'" % val.pop()
> 
> Change to:
> 
>elif val:
>val = "'%s'" % val.pop()
> 
Nice catch, if this patch would merge for this version and not wait for the QA 
case, I would suggest you appended be merged. Or I would ship them in the next 
version with the QA case.
>> return val
>> 
>> try:
>> --
>> 2.29.2
> 
> //Peter
> 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146318): 
https://lists.openembedded.org/g/openembedded-core/message/146318
Mute This Topic: https://lists.openembedded.org/mt/79284745/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v2 0/2] meson: fixup nativesdk sysroot

2020-12-30 Thread Randy Li

> On Dec 30, 2020, at 10:05 PM, Richard Purdie 
>  wrote:
> 
>> On Tue, 2020-12-29 at 11:55 +0800, Randy Li wrote:
>> I still saw the request for this patch from Gstreamer users
>> sometimes. I have verified this version would work fine.
>> 
>> Only the exported SDK would need this patch.
> 
> Thanks for the patches, is there something we should add to the
> automated tests (e.g. in meta/lib/oeqa/sdk/cases) to test this?
> 
The original case is that when I was compiling the Gstreamer plugins bad for 
Intel Media SDK, the include path from the pkg-config would be one without 
sysroot. Most of packages won’t meet such problem, they can just ordinary 
includedir, which is not from meson but compiler I think, then prepend a 
package name when its code include thems.

I think this case only fix those package using meson and need to get something 
likes path information from the pkg-config.

I have not read the QA part, so I don’t know what is necessary for such case. 
Maybe a check for the environment variables from all those auto build tools ? I 
need to read and make the right comment as well as I welcome the idea from the 
others.
> Cheers,
> 
> Richard
> 
Sincerely 
Randy

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146317): 
https://lists.openembedded.org/g/openembedded-core/message/146317
Mute This Topic: https://lists.openembedded.org/mt/79284744/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 1/2] meson: don't turn sting into a list in nativesdk

2020-12-28 Thread Randy Li
In the current version of meson, some path variables only
accept a string not a list.

Signed-off-by: Randy Li 
---
 meta/recipes-devtools/meson/meson/meson-setup.py | 10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-devtools/meson/meson/meson-setup.py 
b/meta/recipes-devtools/meson/meson/meson-setup.py
index 808e2a062f..7acfe373fa 100755
--- a/meta/recipes-devtools/meson/meson/meson-setup.py
+++ b/meta/recipes-devtools/meson/meson/meson-setup.py
@@ -10,9 +10,13 @@ class Template(string.Template):
 class Environ():
 def __getitem__(self, name):
 val = os.environ[name]
-val = ["'%s'" % x for x in val.split()]
-val = ', '.join(val)
-val = '[%s]' % val
+val = val.split()
+if len(val) > 1:
+val = ["'%s'" % x for x in val]
+val = ', '.join(val)
+val = '[%s]' % val
+else:
+if val: val = "'%s'" % val.pop()
 return val
 
 try:
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146293): 
https://lists.openembedded.org/g/openembedded-core/message/146293
Mute This Topic: https://lists.openembedded.org/mt/79284745/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 2/2] meson: add sysroot property

2020-12-28 Thread Randy Li
I know the environment setup script would set PKG_CONFIG_PATH,
but the meson won't take that env when translate the includedir
property from the pkg-config.

Signed-off-by: Randy Li 
---
 meta/recipes-devtools/meson/nativesdk-meson_0.56.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.56.0.bb 
b/meta/recipes-devtools/meson/nativesdk-meson_0.56.0.bb
index 67add2c25e..7fdc4c86d9 100644
--- a/meta/recipes-devtools/meson/nativesdk-meson_0.56.0.bb
+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.56.0.bb
@@ -40,6 +40,7 @@ c_args = @CFLAGS
 c_link_args = @LDFLAGS
 cpp_args = @CPPFLAGS
 cpp_link_args = @LDFLAGS
+sys_root = @OECORE_TARGET_SYSROOT
 
 [host_machine]
 system = '${SDK_OS}'
-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146294): 
https://lists.openembedded.org/g/openembedded-core/message/146294
Mute This Topic: https://lists.openembedded.org/mt/79284746/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 0/2] meson: fixup nativesdk sysroot

2020-12-28 Thread Randy Li
I still saw the request for this patch from Gstreamer users
sometimes. I have verified this version would work fine.

Only the exported SDK would need this patch.

Changelog:
V2:
fix the script for not list-type config option

Randy Li (2):
  meson: don't turn sting into a list in nativesdk
  meson: add sysroot property

 meta/recipes-devtools/meson/meson/meson-setup.py  | 10 +++---
 meta/recipes-devtools/meson/nativesdk-meson_0.56.0.bb |  1 +
 2 files changed, 8 insertions(+), 3 deletions(-)

-- 
2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#146292): 
https://lists.openembedded.org/g/openembedded-core/message/146292
Mute This Topic: https://lists.openembedded.org/mt/79284744/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] meson: add sysroot property

2020-09-30 Thread Randy Li


On 01/10/2020 00:40, Alexander Kanavin wrote:

Wait, how does it work in native meson then?

It is the nativesdk meson has this problem, that is what cross build 
requests for.


You can try the Intel MediaSDK, I reported this issue to Gstreamer for 
this but it comes to the issue of OE.


Or you mean the native meson for the target system ? I don't think they 
need a cross build file.



Alex

On Wed 30. Sep 2020 at 17.06, ayaka > wrote:


I know the environment setup script would set PKG_CONFIG_PATH,

but the meson won't take that env when translate the includedir

property from the pkg-config.



Signed-off-by: ayaka mailto:ay...@soulik.info>>

---

 meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
 | 1 +

 1 file changed, 1 insertion(+)



diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb

b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb


index 67add2c25e..7fdc4c86d9 100644

--- a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb


+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb


@@ -40,6 +40,7 @@ c_args = @CFLAGS

 c_link_args = @LDFLAGS

 cpp_args = @CPPFLAGS

 cpp_link_args = @LDFLAGS

+sys_root = @OECORE_TARGET_SYSROOT



 [host_machine]

 system = '${SDK_OS}'

-- 


2.25.4




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#142990): 
https://lists.openembedded.org/g/openembedded-core/message/142990
Mute This Topic: https://lists.openembedded.org/mt/77219311/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] meson: add sysroot property

2020-09-30 Thread Randy Li
I know the environment setup script would set PKG_CONFIG_PATH,
but the meson won't take that env when translate the includedir
property from the pkg-config.

Signed-off-by: ayaka 
---
 meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb 
b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
index 67add2c25e..7fdc4c86d9 100644
--- a/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.55.1.bb
@@ -40,6 +40,7 @@ c_args = @CFLAGS
 c_link_args = @LDFLAGS
 cpp_args = @CPPFLAGS
 cpp_link_args = @LDFLAGS
+sys_root = @OECORE_TARGET_SYSROOT
 
 [host_machine]
 system = '${SDK_OS}'
-- 
2.25.4


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#142938): 
https://lists.openembedded.org/g/openembedded-core/message/142938
Mute This Topic: https://lists.openembedded.org/mt/77219311/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v5 0/6] Add tune for ARMv8 and some cortex processors

2018-06-19 Thread Randy Li
Something 
changelog:
v5:
I sent wrong version in the previous version, this one is correct
v4:
update the tune file for thunderx
v3:
fix the wrong defines in armv8a.inc
v2:
add tune files for cortex-a72
v1:
begin this work


Randy Li (6):
  arch-armv8a.inc: add tune include for armv8
  ThunderX: update the armv8a rules
  tune-cortexa32: add tunes for ARM Cortex-A32
  tune-cortexa35: add tunes for ARM Cortex-A35
  tune-cortexa53: add tunes for ARM Cortex-A53
  tune-cortexa72: add tunes for ARM Cortex-A72

 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 28 +++
 meta/conf/machine/include/tune-cortexa32.inc  | 15 ++
 meta/conf/machine/include/tune-cortexa35.inc  | 15 ++
 meta/conf/machine/include/tune-cortexa53.inc  | 15 ++
 meta/conf/machine/include/tune-cortexa72.inc  | 12 
 meta/conf/machine/include/tune-thunderx.inc   |  4 ++--
 7 files changed, 87 insertions(+), 3 deletions(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa53.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5 3/6] tune-cortexa32: add tunes for ARM Cortex-A32

2018-06-19 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a32

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa32.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc

diff --git a/meta/conf/machine/include/tune-cortexa32.inc 
b/meta/conf/machine/include/tune-cortexa32.inc
new file mode 100644
index 00..22f303fae9
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa32.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa32"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa32] = "Enable Cortex-A32 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa32', ' 
-mcpu=cortex-a32', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa32 cortexa32-crypto"
+ARMPKGARCH_tune-cortexa32 = "cortexa32"
+ARMPKGARCH_tune-cortexa32-crypto  = "cortexa32"
+TUNE_FEATURES_tune-cortexa32  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa32"
+TUNE_FEATURES_tune-cortexa32-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa32 cortexa32-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5 6/6] tune-cortexa72: add tunes for ARM Cortex-A72

2018-06-19 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a72

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa72.inc | 12 
 1 file changed, 12 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

diff --git a/meta/conf/machine/include/tune-cortexa72.inc 
b/meta/conf/machine/include/tune-cortexa72.inc
new file mode 100644
index 00..8055492b8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa72.inc
@@ -0,0 +1,12 @@
+DEFAULTTUNE ?= "cortexa72"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa72] = "Enable Cortex-A72 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa72', ' 
-mcpu=cortex-a72', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa72"
+ARMPKGARCH_tune-cortexa72 = "cortexa72"
+TUNE_FEATURES_tune-cortexa72  = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa72"
+PACKAGE_EXTRA_ARCHS_tune-cortexa72= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5 5/6] tune-cortexa53: add tunes for ARM Cortex-A53

2018-06-19 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a53

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa53.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa53.inc

diff --git a/meta/conf/machine/include/tune-cortexa53.inc 
b/meta/conf/machine/include/tune-cortexa53.inc
new file mode 100644
index 00..050a735d8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa53.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa53"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa53] = "Enable Cortex-A53 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa53', ' 
-mcpu=cortex-a53', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa53 cortexa53-crypto"
+ARMPKGARCH_tune-cortexa53 = "cortexa53"
+ARMPKGARCH_tune-cortexa53-crypto  = "cortexa53"
+TUNE_FEATURES_tune-cortexa53  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa53"
+TUNE_FEATURES_tune-cortexa53-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa53 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa53-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa53 cortexa53-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5 1/6] arch-armv8a.inc: add tune include for armv8

2018-06-19 Thread Randy Li
There are some addtional instructions apart from bare armv8,
also there is armv8.1, armv8.2.

Most the processor would support crc, except X-gene 1.

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 28 +++
 2 files changed, 28 insertions(+), 1 deletion(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc

diff --git a/meta/conf/machine/include/arm/arch-armv8.inc 
b/meta/conf/machine/include/arm/arch-armv8.inc
deleted file mode 100644
index 5e832fae6d..00
--- a/meta/conf/machine/include/arm/arch-armv8.inc
+++ /dev/null
@@ -1 +0,0 @@
-require conf/machine/include/arm/arch-arm64.inc
diff --git a/meta/conf/machine/include/arm/arch-armv8a.inc 
b/meta/conf/machine/include/arm/arch-armv8a.inc
new file mode 100644
index 00..323d0d7f0f
--- /dev/null
+++ b/meta/conf/machine/include/arm/arch-armv8a.inc
@@ -0,0 +1,28 @@
+DEFAULTTUNE ?= "armv8a-crc"
+
+TUNEVALID[armv8a] = "Enable instructions for ARMv8-a"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', ' 
-march=armv8-a', '', d)}"
+TUNEVALID[simd] = "Enable instructions for ARMv8-a Advanced SIMD and 
floating-point"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'simd', '+simd', '', d)}"
+TUNEVALID[crc] = "Enable instructions for ARMv8-a Cyclic Redundancy Check 
(CRC)"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crc', '+crc', '', d)}"
+TUNEVALID[crypto] = "Enable instructions for ARMv8-a cryptographic"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', 
d)}"
+MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', 
'armv8a:', '' ,d)}"
+
+require conf/machine/include/arm/arch-arm64.inc
+
+# Little Endian base configs
+AVAILTUNES += "armv8a armv8a-crc armv8a-crc-crypto armv8a-crypto"
+ARMPKGARCH_tune-armv8a?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc?= "armv8a"
+ARMPKGARCH_tune-armv8a-crypto ?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc-crypto ?= "armv8a"
+TUNE_FEATURES_tune-armv8a  = "aarch64 armv8a simd"
+TUNE_FEATURES_tune-armv8a-crc  = "${TUNE_FEATURES_tune-armv8a} crc"
+TUNE_FEATURES_tune-armv8a-crypto   = "${TUNE_FEATURES_tune-armv8a} 
crypto"
+TUNE_FEATURES_tune-armv8a-crc-crypto   = "${TUNE_FEATURES_tune-armv8a-crc} 
crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a= "aarch64 armv8a simd"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crc"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5 4/6] tune-cortexa35: add tunes for ARM Cortex-A35

2018-06-19 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a35

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa35.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc

diff --git a/meta/conf/machine/include/tune-cortexa35.inc 
b/meta/conf/machine/include/tune-cortexa35.inc
new file mode 100644
index 00..535a8aef15
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa35.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa35"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa35] = "Enable Cortex-A35 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa35', ' 
-mcpu=cortex-a35', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa35 cortexa35-crypto"
+ARMPKGARCH_tune-cortexa35 = "cortexa35"
+ARMPKGARCH_tune-cortexa35-crypto  = "cortexa35"
+TUNE_FEATURES_tune-cortexa35  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa35"
+TUNE_FEATURES_tune-cortexa35-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa35 cortexa35-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5 2/6] ThunderX: update the armv8a rules

2018-06-19 Thread Randy Li
I am not familiar with the big endian, so I don't update it.
I don't have much information about the Cavium ThunderX,
it looks like it supports all the ARM instructions.

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-thunderx.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/conf/machine/include/tune-thunderx.inc 
b/meta/conf/machine/include/tune-thunderx.inc
index 3d43b0f7e5..f82a3a5635 100644
--- a/meta/conf/machine/include/tune-thunderx.inc
+++ b/meta/conf/machine/include/tune-thunderx.inc
@@ -1,4 +1,4 @@
-require conf/machine/include/arm/arch-armv8.inc
+require conf/machine/include/arm/arch-armv8a.inc
 
 DEFAULTTUNE ?= "thunderx"
 AVAILTUNES += "thunderx thunderx_be"
@@ -15,5 +15,5 @@ TUNE_FEATURES_tune-thunderx_be = 
"${TUNE_FEATURES_tune-thunderx} bigendian"
 BASE_LIB_tune-thunderx = "lib64"
 BASE_LIB_tune-thunderx_be = "lib64"
 
-PACKAGE_EXTRA_ARCHS_tune-thunderx = "aarch64 thunderx"
+PACKAGE_EXTRA_ARCHS_tune-thunderx = "armv8a-crc-crypto thunderx"
 PACKAGE_EXTRA_ARCHS_tune-thunderx_be = "aarch64_be thunderx_be"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 6/6] tune-cortexa72: add tunes for ARM Cortex-A72

2018-06-19 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a72

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa72.inc | 12 
 1 file changed, 12 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

diff --git a/meta/conf/machine/include/tune-cortexa72.inc 
b/meta/conf/machine/include/tune-cortexa72.inc
new file mode 100644
index 00..8055492b8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa72.inc
@@ -0,0 +1,12 @@
+DEFAULTTUNE ?= "cortexa72"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa72] = "Enable Cortex-A72 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa72', ' 
-mcpu=cortex-a72', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa72"
+ARMPKGARCH_tune-cortexa72 = "cortexa72"
+TUNE_FEATURES_tune-cortexa72  = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa72"
+PACKAGE_EXTRA_ARCHS_tune-cortexa72= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 5/6] tune-cortexa53: add tunes for ARM Cortex-A53

2018-06-19 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a53

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa53.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa53.inc

diff --git a/meta/conf/machine/include/tune-cortexa53.inc 
b/meta/conf/machine/include/tune-cortexa53.inc
new file mode 100644
index 00..050a735d8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa53.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa53"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa53] = "Enable Cortex-A53 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa53', ' 
-mcpu=cortex-a53', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa53 cortexa53-crypto"
+ARMPKGARCH_tune-cortexa53 = "cortexa53"
+ARMPKGARCH_tune-cortexa53-crypto  = "cortexa53"
+TUNE_FEATURES_tune-cortexa53  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa53"
+TUNE_FEATURES_tune-cortexa53-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa53 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa53-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa53 cortexa53-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 4/6] tune-cortexa35: add tunes for ARM Cortex-A35

2018-06-19 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a35

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa35.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc

diff --git a/meta/conf/machine/include/tune-cortexa35.inc 
b/meta/conf/machine/include/tune-cortexa35.inc
new file mode 100644
index 00..535a8aef15
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa35.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa35"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa35] = "Enable Cortex-A35 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa35', ' 
-mcpu=cortex-a35', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa35 cortexa35-crypto"
+ARMPKGARCH_tune-cortexa35 = "cortexa35"
+ARMPKGARCH_tune-cortexa35-crypto  = "cortexa35"
+TUNE_FEATURES_tune-cortexa35  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa35"
+TUNE_FEATURES_tune-cortexa35-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa35 cortexa35-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 3/5] tune-cortexa35: add tunes for ARM Cortex-A35

2018-06-19 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a35

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa35.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc

diff --git a/meta/conf/machine/include/tune-cortexa35.inc 
b/meta/conf/machine/include/tune-cortexa35.inc
new file mode 100644
index 00..c5fc2e948e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa35.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa35"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa35] = "Enable Cortex-A35 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa35', ' 
-mcpu=cortex-a35', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa35 cortexa35-crypto"
+ARMPKGARCH_tune-cortexa35 = "cortexa35"
+ARMPKGARCH_tune-cortexa35-crypto  = "cortexa35"
+TUNE_FEATURES_tune-cortexa35  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa35"
+TUNE_FEATURES_tune-cortexa35-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa35-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 5/5] tune-cortexa72: add tunes for ARM Cortex-A72

2018-06-19 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a72

Signe-off-by: ayaka 
Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa72.inc | 12 
 1 file changed, 12 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

diff --git a/meta/conf/machine/include/tune-cortexa72.inc 
b/meta/conf/machine/include/tune-cortexa72.inc
new file mode 100644
index 00..8055492b8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa72.inc
@@ -0,0 +1,12 @@
+DEFAULTTUNE ?= "cortexa72"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa72] = "Enable Cortex-A72 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa72', ' 
-mcpu=cortex-a72', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa72"
+ARMPKGARCH_tune-cortexa72 = "cortexa72"
+TUNE_FEATURES_tune-cortexa72  = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa72"
+PACKAGE_EXTRA_ARCHS_tune-cortexa72= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 4/5] tune-cortexa32: add tunes for ARM Cortex-A32

2018-06-19 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a32

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa32.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc

diff --git a/meta/conf/machine/include/tune-cortexa32.inc 
b/meta/conf/machine/include/tune-cortexa32.inc
new file mode 100644
index 00..4ecb9ef241
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa32.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa32"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa32] = "Enable Cortex-A32 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa32', ' 
-mcpu=cortex-a32', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa32 cortexa32-crypto"
+ARMPKGARCH_tune-cortexa32 = "cortexa32"
+ARMPKGARCH_tune-cortexa32-crypto  = "cortexa32"
+TUNE_FEATURES_tune-cortexa32  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa32"
+TUNE_FEATURES_tune-cortexa32-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa32-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 2/5] ThunderX: update the armv8a rules

2018-06-19 Thread Randy Li
I am not familiar with the big endian, so I don't update it.
I don't have much information about the Cavium ThunderX,
it looks like it supports all the ARM instructions.

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-thunderx.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/conf/machine/include/tune-thunderx.inc 
b/meta/conf/machine/include/tune-thunderx.inc
index 3d43b0f7e5..f82a3a5635 100644
--- a/meta/conf/machine/include/tune-thunderx.inc
+++ b/meta/conf/machine/include/tune-thunderx.inc
@@ -1,4 +1,4 @@
-require conf/machine/include/arm/arch-armv8.inc
+require conf/machine/include/arm/arch-armv8a.inc
 
 DEFAULTTUNE ?= "thunderx"
 AVAILTUNES += "thunderx thunderx_be"
@@ -15,5 +15,5 @@ TUNE_FEATURES_tune-thunderx_be = 
"${TUNE_FEATURES_tune-thunderx} bigendian"
 BASE_LIB_tune-thunderx = "lib64"
 BASE_LIB_tune-thunderx_be = "lib64"
 
-PACKAGE_EXTRA_ARCHS_tune-thunderx = "aarch64 thunderx"
+PACKAGE_EXTRA_ARCHS_tune-thunderx = "armv8a-crc-crypto thunderx"
 PACKAGE_EXTRA_ARCHS_tune-thunderx_be = "aarch64_be thunderx_be"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 3/6] tune-cortexa32: add tunes for ARM Cortex-A32

2018-06-19 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a32

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa32.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc

diff --git a/meta/conf/machine/include/tune-cortexa32.inc 
b/meta/conf/machine/include/tune-cortexa32.inc
new file mode 100644
index 00..22f303fae9
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa32.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa32"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa32] = "Enable Cortex-A32 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa32', ' 
-mcpu=cortex-a32', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa32 cortexa32-crypto"
+ARMPKGARCH_tune-cortexa32 = "cortexa32"
+ARMPKGARCH_tune-cortexa32-crypto  = "cortexa32"
+TUNE_FEATURES_tune-cortexa32  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa32"
+TUNE_FEATURES_tune-cortexa32-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa32 cortexa32-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 1/5] arch-armv8a.inc: add tune include for armv8

2018-06-19 Thread Randy Li
There are some addtional instructions apart from bare armv8,
also there is armv8.1, armv8.2.

Most the processor would support crc, except X-gene 1.

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 22 ++
 2 files changed, 22 insertions(+), 1 deletion(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc

diff --git a/meta/conf/machine/include/arm/arch-armv8.inc 
b/meta/conf/machine/include/arm/arch-armv8.inc
deleted file mode 100644
index 5e832fae6d..00
--- a/meta/conf/machine/include/arm/arch-armv8.inc
+++ /dev/null
@@ -1 +0,0 @@
-require conf/machine/include/arm/arch-arm64.inc
diff --git a/meta/conf/machine/include/arm/arch-armv8a.inc 
b/meta/conf/machine/include/arm/arch-armv8a.inc
new file mode 100644
index 00..b8b9e44c54
--- /dev/null
+++ b/meta/conf/machine/include/arm/arch-armv8a.inc
@@ -0,0 +1,22 @@
+DEFAULTTUNE ?= "armv8a-crc"
+
+TUNEVALID[armv8] = "Enable instructions for ARMv8-a"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', ' 
-march=armv8-a', '', d)}"
+MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', 
'armv8a:', '' ,d)}"
+
+require conf/machine/include/arm/arch-arm64.inc
+
+# Little Endian base configs
+AVAILTUNES += "armv8a armv8a-crc armv8a-crc-crypto armv8a-crypto"
+ARMPKGARCH_tune-armv8a?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc?= "armv8a"
+ARMPKGARCH_tune-armv8a-crypto ?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc-crypto ?= "armv8a"
+TUNE_FEATURES_tune-armv8a  = "armv8a simd"
+TUNE_FEATURES_tune-armv8a-crc  = "${ARMPKGARCH_tune-armv8a} crc"
+TUNE_FEATURES_tune-armv8a-crypto   = "${TUNE_FEATURES_tune-armv8a} 
crypto"
+TUNE_FEATURES_tune-armv8a-crc-crypto   = "${TUNE_FEATURES_tune-armv8a-crc} 
crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a= "aarch64 armv8a simd"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crc"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4 0/5] Add tune for ARMv8 and some cortex processors

2018-06-19 Thread Randy Li
changelog:
v4:
update the tune file for thunderx
v3:
fix the wrong defines in armv8a.inc
v2:
add tune files for cortex-a72
v1:
begin this work

Randy Li (5):
  arch-armv8a.inc: add tune include for armv8
  ThunderX: update the armv8a rules
  tune-cortexa35: add tunes for ARM Cortex-A35
  tune-cortexa32: add tunes for ARM Cortex-A32
  tune-cortexa72: add tunes for ARM Cortex-A72

 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 22 ++
 meta/conf/machine/include/tune-cortexa32.inc  | 15 +++
 meta/conf/machine/include/tune-cortexa35.inc  | 15 +++
 meta/conf/machine/include/tune-cortexa72.inc  | 12 
 meta/conf/machine/include/tune-thunderx.inc   |  4 ++--
 6 files changed, 66 insertions(+), 3 deletions(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 3/5] tune-cortexa35: add tunes for ARM Cortex-A35

2018-06-14 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a35

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa35.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc

diff --git a/meta/conf/machine/include/tune-cortexa35.inc 
b/meta/conf/machine/include/tune-cortexa35.inc
new file mode 100644
index 00..535a8aef15
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa35.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa35"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa35] = "Enable Cortex-A35 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa35', ' 
-mcpu=cortex-a35', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa35 cortexa35-crypto"
+ARMPKGARCH_tune-cortexa35 = "cortexa35"
+ARMPKGARCH_tune-cortexa35-crypto  = "cortexa35"
+TUNE_FEATURES_tune-cortexa35  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa35"
+TUNE_FEATURES_tune-cortexa35-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa35 cortexa35-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 2/5] tune-cortexa32: add tunes for ARM Cortex-A32

2018-06-14 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a32

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa32.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc

diff --git a/meta/conf/machine/include/tune-cortexa32.inc 
b/meta/conf/machine/include/tune-cortexa32.inc
new file mode 100644
index 00..22f303fae9
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa32.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa32"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa32] = "Enable Cortex-A32 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa32', ' 
-mcpu=cortex-a32', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa32 cortexa32-crypto"
+ARMPKGARCH_tune-cortexa32 = "cortexa32"
+ARMPKGARCH_tune-cortexa32-crypto  = "cortexa32"
+TUNE_FEATURES_tune-cortexa32  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa32"
+TUNE_FEATURES_tune-cortexa32-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa32 cortexa32-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 4/5] tune-cortexa53: add tunes for ARM Cortex-A53

2018-06-14 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a53

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa53.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa53.inc

diff --git a/meta/conf/machine/include/tune-cortexa53.inc 
b/meta/conf/machine/include/tune-cortexa53.inc
new file mode 100644
index 00..050a735d8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa53.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa53"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa53] = "Enable Cortex-A53 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa53', ' 
-mcpu=cortex-a53', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa53 cortexa53-crypto"
+ARMPKGARCH_tune-cortexa53 = "cortexa53"
+ARMPKGARCH_tune-cortexa53-crypto  = "cortexa53"
+TUNE_FEATURES_tune-cortexa53  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa53"
+TUNE_FEATURES_tune-cortexa53-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa53 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa53"
+PACKAGE_EXTRA_ARCHS_tune-cortexa53-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa53 cortexa53-crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 5/5] tune-cortexa72: add tunes for ARM Cortex-A72

2018-06-14 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a72

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa72.inc | 12 
 1 file changed, 12 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

diff --git a/meta/conf/machine/include/tune-cortexa72.inc 
b/meta/conf/machine/include/tune-cortexa72.inc
new file mode 100644
index 00..8055492b8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa72.inc
@@ -0,0 +1,12 @@
+DEFAULTTUNE ?= "cortexa72"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa72] = "Enable Cortex-A72 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa72', ' 
-mcpu=cortex-a72', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa72"
+ARMPKGARCH_tune-cortexa72 = "cortexa72"
+TUNE_FEATURES_tune-cortexa72  = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa72"
+PACKAGE_EXTRA_ARCHS_tune-cortexa72= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 1/5] arch-armv8a.inc: add tune include for armv8

2018-06-14 Thread Randy Li
There are some addtional instructions apart from bare armv8,
also there is armv8.1, armv8.2.

Most the processor would support crc, except X-gene 1.

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 28 +++
 2 files changed, 28 insertions(+), 1 deletion(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc

diff --git a/meta/conf/machine/include/arm/arch-armv8.inc 
b/meta/conf/machine/include/arm/arch-armv8.inc
deleted file mode 100644
index 5e832fae6d..00
--- a/meta/conf/machine/include/arm/arch-armv8.inc
+++ /dev/null
@@ -1 +0,0 @@
-require conf/machine/include/arm/arch-arm64.inc
diff --git a/meta/conf/machine/include/arm/arch-armv8a.inc 
b/meta/conf/machine/include/arm/arch-armv8a.inc
new file mode 100644
index 00..323d0d7f0f
--- /dev/null
+++ b/meta/conf/machine/include/arm/arch-armv8a.inc
@@ -0,0 +1,28 @@
+DEFAULTTUNE ?= "armv8a-crc"
+
+TUNEVALID[armv8a] = "Enable instructions for ARMv8-a"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', ' 
-march=armv8-a', '', d)}"
+TUNEVALID[simd] = "Enable instructions for ARMv8-a Advanced SIMD and 
floating-point"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'simd', '+simd', '', d)}"
+TUNEVALID[crc] = "Enable instructions for ARMv8-a Cyclic Redundancy Check 
(CRC)"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crc', '+crc', '', d)}"
+TUNEVALID[crypto] = "Enable instructions for ARMv8-a cryptographic"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'crypto', '+crypto', '', 
d)}"
+MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', 
'armv8a:', '' ,d)}"
+
+require conf/machine/include/arm/arch-arm64.inc
+
+# Little Endian base configs
+AVAILTUNES += "armv8a armv8a-crc armv8a-crc-crypto armv8a-crypto"
+ARMPKGARCH_tune-armv8a?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc?= "armv8a"
+ARMPKGARCH_tune-armv8a-crypto ?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc-crypto ?= "armv8a"
+TUNE_FEATURES_tune-armv8a  = "aarch64 armv8a simd"
+TUNE_FEATURES_tune-armv8a-crc  = "${TUNE_FEATURES_tune-armv8a} crc"
+TUNE_FEATURES_tune-armv8a-crypto   = "${TUNE_FEATURES_tune-armv8a} 
crypto"
+TUNE_FEATURES_tune-armv8a-crc-crypto   = "${TUNE_FEATURES_tune-armv8a-crc} 
crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a= "aarch64 armv8a simd"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crc"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} crypto"
-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3 0/5] Add tune for ARMv8 and some cortex processors

2018-06-14 Thread Randy Li
I mistake some thing wrong in the previous version, I have verified
this version and it works.

I have not found a way to support big little.

Randy Li (5):
  arch-armv8a.inc: add tune include for armv8
  tune-cortexa32: add tunes for ARM Cortex-A32
  tune-cortexa35: add tunes for ARM Cortex-A35
  tune-cortexa53: add tunes for ARM Cortex-A53
  tune-cortexa72: add tunes for ARM Cortex-A72

 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 28 +++
 meta/conf/machine/include/tune-cortexa32.inc  | 15 ++
 meta/conf/machine/include/tune-cortexa35.inc  | 15 ++
 meta/conf/machine/include/tune-cortexa53.inc  | 15 ++
 meta/conf/machine/include/tune-cortexa72.inc  | 12 
 6 files changed, 85 insertions(+), 1 deletion(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa53.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

-- 
2.14.4

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 1/4] arch-armv8a.inc: add tune include for armv8

2018-06-09 Thread Randy Li
There are some addtional instructions apart from bare armv8,
also there is armv8.1, armv8.2.

Most the processor would support crc, except X-gene 1.

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 22 ++
 2 files changed, 22 insertions(+), 1 deletion(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc

diff --git a/meta/conf/machine/include/arm/arch-armv8.inc 
b/meta/conf/machine/include/arm/arch-armv8.inc
deleted file mode 100644
index 5e832fae6d..00
--- a/meta/conf/machine/include/arm/arch-armv8.inc
+++ /dev/null
@@ -1 +0,0 @@
-require conf/machine/include/arm/arch-arm64.inc
diff --git a/meta/conf/machine/include/arm/arch-armv8a.inc 
b/meta/conf/machine/include/arm/arch-armv8a.inc
new file mode 100644
index 00..b8b9e44c54
--- /dev/null
+++ b/meta/conf/machine/include/arm/arch-armv8a.inc
@@ -0,0 +1,22 @@
+DEFAULTTUNE ?= "armv8a-crc"
+
+TUNEVALID[armv8] = "Enable instructions for ARMv8-a"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', ' 
-march=armv8-a', '', d)}"
+MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv8a', 
'armv8a:', '' ,d)}"
+
+require conf/machine/include/arm/arch-arm64.inc
+
+# Little Endian base configs
+AVAILTUNES += "armv8a armv8a-crc armv8a-crc-crypto armv8a-crypto"
+ARMPKGARCH_tune-armv8a?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc?= "armv8a"
+ARMPKGARCH_tune-armv8a-crypto ?= "armv8a"
+ARMPKGARCH_tune-armv8a-crc-crypto ?= "armv8a"
+TUNE_FEATURES_tune-armv8a  = "armv8a simd"
+TUNE_FEATURES_tune-armv8a-crc  = "${ARMPKGARCH_tune-armv8a} crc"
+TUNE_FEATURES_tune-armv8a-crypto   = "${TUNE_FEATURES_tune-armv8a} 
crypto"
+TUNE_FEATURES_tune-armv8a-crc-crypto   = "${TUNE_FEATURES_tune-armv8a-crc} 
crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a= "aarch64 armv8a simd"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crc"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a} crypto"
+PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} crypto"
-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 4/4] tune-cortexa72: add tunes for ARM Cortex-A72

2018-06-09 Thread Randy Li
It looks that the Cryptography engine is mandatory in this
platform.

https://developer.arm.com/products/processors/cortex-a/cortex-a72

Signe-off-by: ayaka 
Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa72.inc | 12 
 1 file changed, 12 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

diff --git a/meta/conf/machine/include/tune-cortexa72.inc 
b/meta/conf/machine/include/tune-cortexa72.inc
new file mode 100644
index 00..8055492b8e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa72.inc
@@ -0,0 +1,12 @@
+DEFAULTTUNE ?= "cortexa72"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa72] = "Enable Cortex-A72 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa72', ' 
-mcpu=cortex-a72', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa72"
+ARMPKGARCH_tune-cortexa72 = "cortexa72"
+TUNE_FEATURES_tune-cortexa72  = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa72"
+PACKAGE_EXTRA_ARCHS_tune-cortexa72= 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa72"
-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 2/4] tune-cortexa35: add tunes for ARM Cortex-A35

2018-06-09 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a35

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa35.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc

diff --git a/meta/conf/machine/include/tune-cortexa35.inc 
b/meta/conf/machine/include/tune-cortexa35.inc
new file mode 100644
index 00..c5fc2e948e
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa35.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa35"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa35] = "Enable Cortex-A35 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa35', ' 
-mcpu=cortex-a35', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa35 cortexa35-crypto"
+ARMPKGARCH_tune-cortexa35 = "cortexa35"
+ARMPKGARCH_tune-cortexa35-crypto  = "cortexa35"
+TUNE_FEATURES_tune-cortexa35  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa35"
+TUNE_FEATURES_tune-cortexa35-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa35"
+PACKAGE_EXTRA_ARCHS_tune-cortexa35-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa35-crypto"
-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 3/4] tune-cortexa32: add tunes for ARM Cortex-A32

2018-06-09 Thread Randy Li
https://developer.arm.com/products/processors/cortex-a/cortex-a32

Signed-off-by: Randy Li 
---
 meta/conf/machine/include/tune-cortexa32.inc | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc

diff --git a/meta/conf/machine/include/tune-cortexa32.inc 
b/meta/conf/machine/include/tune-cortexa32.inc
new file mode 100644
index 00..4ecb9ef241
--- /dev/null
+++ b/meta/conf/machine/include/tune-cortexa32.inc
@@ -0,0 +1,15 @@
+DEFAULTTUNE ?= "cortexa32"
+
+require conf/machine/include/arm/arch-armv8a.inc
+
+TUNEVALID[cortexa32] = "Enable Cortex-A32 specific processor optimizations"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexa32', ' 
-mcpu=cortex-a32', '', d)}"
+
+# Little Endian base configs
+AVAILTUNES += "cortexa32 cortexa32-crypto"
+ARMPKGARCH_tune-cortexa32 = "cortexa32"
+ARMPKGARCH_tune-cortexa32-crypto  = "cortexa32"
+TUNE_FEATURES_tune-cortexa32  = "${TUNE_FEATURES_tune-armv8a-crc} 
cortexa32"
+TUNE_FEATURES_tune-cortexa32-crypto   = 
"${TUNE_FEATURES_tune-armv8a-crc-crypto} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32 = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc} cortexa32"
+PACKAGE_EXTRA_ARCHS_tune-cortexa32-crypto  = 
"${PACKAGE_EXTRA_ARCHS_tune-armv8a-crc-crypto} cortexa32-crypto"
-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2 0/4] Add tune for ARMv8 and some cortex processors

2018-06-09 Thread Randy Li
I read the ARMv8 manual again, it looks the hardware float is mandatory
in Linux Distributions and toolchain libraries. Even some cortex
processors can be configured without FPU/NEON hardware, but I don't
think they would be used in openembeded core.

So I can assume the NEON(SIMD) would exist all the time. Leaving only the
crc and crypto instructions are optional here.


Randy Li (4):
  arch-armv8a.inc: add tune include for armv8
  tune-cortexa35: add tunes for ARM Cortex-A35
  tune-cortexa32: add tunes for ARM Cortex-A32
  tune-cortexa72: add tunes for ARM Cortex-A72

 meta/conf/machine/include/arm/arch-armv8.inc  |  1 -
 meta/conf/machine/include/arm/arch-armv8a.inc | 22 ++
 meta/conf/machine/include/tune-cortexa32.inc  | 15 +++
 meta/conf/machine/include/tune-cortexa35.inc  | 15 +++
 meta/conf/machine/include/tune-cortexa72.inc  | 12 
 5 files changed, 64 insertions(+), 1 deletion(-)
 delete mode 100644 meta/conf/machine/include/arm/arch-armv8.inc
 create mode 100644 meta/conf/machine/include/arm/arch-armv8a.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa32.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa35.inc
 create mode 100644 meta/conf/machine/include/tune-cortexa72.inc

-- 
2.14.3

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core