[oe] [meta-networking][PATCH] quagga: 1.2.1 -> 1.2.2

2017-11-23 Thread Huang Qiyu
Update quagga from 1.2.1 to 1.2.2

Signed-off-by: Huang Qiyu 
---
 meta-networking/recipes-protocols/quagga/quagga_1.2.2.bb | 4 
 1 file changed, 4 insertions(+)
 create mode 100644 meta-networking/recipes-protocols/quagga/quagga_1.2.2.bb

diff --git a/meta-networking/recipes-protocols/quagga/quagga_1.2.2.bb 
b/meta-networking/recipes-protocols/quagga/quagga_1.2.2.bb
new file mode 100644
index 000..653f46b
--- /dev/null
+++ b/meta-networking/recipes-protocols/quagga/quagga_1.2.2.bb
@@ -0,0 +1,4 @@
+require quagga.inc
+
+SRC_URI[md5sum] = "e84be2938c26c0c872792090f1a6a866"
+SRC_URI[sha256sum] = 
"522e22f2beee64e3f0c2cde3d0155f3b8103f4f6fc8abef92cb40bc3a4cc2931"
-- 
2.7.4



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


Re: [oe] [PATCH 00/15] create meta-installer layer

2017-11-23 Thread Hongxu Jia

On 2017年11月24日 08:35, Khem Raj wrote:


On Thu, Nov 23, 2017 at 4:15 AM Burton, Ross > wrote:


I honestly don't see why this has to belong in meta-openembedded
and can't live in a standalone repository.


I share the same opinion it should probably be
 Repo of its own



Hi Ross & Khem,

Since both of you think it should be as a standalone repository,
I do not insist on it.

Hi Michael,

Would you please create a repository on http://git.yoctoproject.org/
the layer name called `meta-installer', should I resend pull request
for review or directly push the repo contents to it once it's created.

If the latter one, should I send my ssh pub key to you privately?

//Hongxu




Ross

On 23 November 2017 at 12:09, Hongxu Jia > wrote:

The meta-installer layer provides a collection of installation
programs based on OE platform.

One implementation is the target installer 'anaconda', the version
is 26.21.11 which is based on Fedora 26.

The anacoda requires:
- systemd as init manager
- python3
- dnf2/rpm4
- gobject-introspection which requires qemu-usermode
  in MACHINE_FEATURES

The anaconda provides:
- graphic install and text install.

- package based (dnf/rpm) install and image (copy)
  based install.

- package based (dnf/rpm) install from local and
  remote rpm sources such as CDs and DVDs, images
  stored on a hard drive, NFS, HTTP, and FTP.

- kickstart install which provides a fully unattended
  installation that can be duplicated on scores of machines.

- install over VNC on headless machines.

- timezone setting.

- root password setting.

- user account creation.

- a variety of advanced storage devices including
  LVM, Btrfs, Ext4, and filesystem encryption.

TODO (currently not support):
- keyboard setting

- language support setting

- network & host name setting

//Hongxu

The following changes since commit
34aa4c3202b427f59f843dc43a4e1afda4f81d13:

  usb-modeswitch: add usb-modeswitch@.service (2017-11-19
13:45:38 -0800)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib

hongxu/meta-installer

http://cgit.openembedded.org/openembedded-core-contrib/log/?h=hongxu/meta-installer

Hongxu Jia (15):
  meta-installer: create layer
  meta-installer: add kernel config
  meta-installer: add anaconda support for target build
  meta-installer: add distro anaconda for host build
  meta-installer: add systemd/systemd-serialgetty bbappend
  meta-installer: add gtk+3 bbappend
  meta-installer: add initramfs-live-boot bbappend
  meta-installer: add xserver-xf86-config bbappend
  meta-installer: add multipath-tools bbappend
  meta-installer: add recipe packagegroup-installer-x11-anaconda
  meta-installer: add recipe yocto-compat-logos
  meta-installer: add recipe anaconda-init
  meta-installer: add recipe anaconda 26.21.11
  meta-installer: add recipe core-image-anaconda
  meta-installer: add recipe core-image-anaconda-initramfs

 meta-installer/COPYING.MIT                         | 17 +
 meta-installer/README                              | 47 ++
 meta-installer/README.anaconda                     | 341

 meta-installer/classes/anaconda_image.bbclass      | 321
+++
 meta-installer/classes/anaconda_kernel.bbclass     | 14 +
 .../classes/anaconda_support_image.bbclass         | 40 ++
 .../classes/anaconda_support_kernel.bbclass        |  8 +
 meta-installer/conf/distro/anaconda.conf           | 33 ++
 meta-installer/conf/layer.conf                     | 31 ++
 meta-installer/licenses/FLTK                       | 530
++
 .../systemd/files/serial-getty@.service            | 40 ++
 .../systemd/files/serial-screen-anaconda.sh        |  5 +
 .../systemd/systemd-serialgetty.bbappend           | 12 +
 .../recipes-core/systemd/systemd_%.bbappend        |  6 +
 ...for-anaconda-installer-while-loading-libA.patch | 84 +++
 .../recipes-gnome/gtk+/gtk+3_%.%.%.bbappend        |  3 +
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  | 12 +
 .../anaconda-init/anaconda-init.bb 
       |  77 +++
 .../anaconda-init/anaconda-init/COPYING            | 339

 .../anaconda-init/anaconda-init/Xusername       

Re: [oe] [meta-java][PATCH] openjdk-8-native, icedtea7-native: use JAVA_TOOL_OPTIONS from environment

2017-11-23 Thread Bai, Haiqing
Any feedback or comments of this?   thanks .

-Original Message-
From: openembedded-devel-boun...@lists.openembedded.org 
[mailto:openembedded-devel-boun...@lists.openembedded.org] On Behalf Of Haiqing 
Bai
Sent: 2017年11月2日 16:33
To: openembedded-devel@lists.openembedded.org
Subject: [oe] [meta-java][PATCH] openjdk-8-native, icedtea7-native: use 
JAVA_TOOL_OPTIONS from environment

Solution on how to be able to build openjdk for a build host that need the 
environment variable JAVA_TOOL_OPTIONS.
Use JAVA_TOOL_OPTIONS from environment. On some machines this is needed in 
order to start java when the amount of RAM is limited for the user.

Author: Peter Bergin 
Signed-off-by: Haiqing Bai 
---
 recipes-core/icedtea/icedtea7-native.inc|  4 
 recipes-core/openjdk/openjdk-8-native.inc   | 10 ++
 .../openjdk/patches-openjdk-8/handle_extra_output.patch | 17 +
 3 files changed, 31 insertions(+)
 create mode 100644 
recipes-core/openjdk/patches-openjdk-8/handle_extra_output.patch

diff --git a/recipes-core/icedtea/icedtea7-native.inc 
b/recipes-core/icedtea/icedtea7-native.inc
index 7d625eb..d4cf7ac 100644
--- a/recipes-core/icedtea/icedtea7-native.inc
+++ b/recipes-core/icedtea/icedtea7-native.inc
@@ -170,6 +170,10 @@ EXTRA_OEMAKE = ' \
'
 
 do_compile() {
+   # Use JAVA_TOOL_OPTIONS from environment. On some machines this is 
needed
+   # in order to start java when the amount of RAM is limited for the user.
+   export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
+
# OpenJDK uses slightly different names for certain arches. We need to 
know
#   this to create some files which are expected by the build.
case "${TRANSLATED_TARGET_ARCH}" in
diff --git a/recipes-core/openjdk/openjdk-8-native.inc 
b/recipes-core/openjdk/openjdk-8-native.inc
index fd97eff..20e1743 100644
--- a/recipes-core/openjdk/openjdk-8-native.inc
+++ b/recipes-core/openjdk/openjdk-8-native.inc
@@ -9,6 +9,8 @@ DEPENDS = "\
 ca-certificates-native openssl-native coreutils-native \  "
 
+SRC_URI_append += "file://handle_extra_output.patch"
+
 PACKAGECONFIG ??= ""
 PACKAGECONFIG[x11] = "--with-x,,libx11-native xproto-native libxt-native 
libxext-native libxrender-native"
 PACKAGECONFIG[cups] = "--with-cups,,cups"
@@ -47,6 +49,14 @@ EXTRA_OEMAKE_append = ' \
 images \
 '
 
+do_configure_prepend() {
+export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
+}
+
+do_compile_prepend() {
+export JAVA_TOOL_OPTIONS="${JAVA_TOOL_OPTIONS}"
+}
+
 do_compile_append() {
 set -x
 mkdir -p ${B}/certs
diff --git a/recipes-core/openjdk/patches-openjdk-8/handle_extra_output.patch 
b/recipes-core/openjdk/patches-openjdk-8/handle_extra_output.patch
new file mode 100644
index 000..52aad95
--- /dev/null
+++ b/recipes-core/openjdk/patches-openjdk-8/handle_extra_output.patch
@@ -0,0 +1,17 @@
+When adding the environment variable JAVA_TOOL_OPTIONS an extra line in 
+the output from 'java -version' is produced. As this output is parsed 
+by configure script the extra line has to be filtered out.
+
+Index: jdk8u-e8bed1496ff2/common/autoconf/boot-jdk.m4
+===
+--- jdk8u-e8bed1496ff2.orig/common/autoconf/boot-jdk.m4
 jdk8u-e8bed1496ff2/common/autoconf/boot-jdk.m4
+@@ -51,7 +51,7 @@ AC_DEFUN([BOOTJDK_DO_CHECK],
+ BOOT_JDK_FOUND=no
+   else
+ # Oh, this is looking good! We probably have found a proper JDK. 
Is it the correct version?
+-BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
++BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | 
++ grep -v JAVA_TOOL_OPTIONS | head -n 1`
+ 
+ # Extra M4 quote needed to protect [] in grep expression.
+ [FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  
+ '\"1\.[78]\.'`]
--
1.9.1

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


Re: [oe] [PATCH 00/15] create meta-installer layer

2017-11-23 Thread Khem Raj
On Thu, Nov 23, 2017 at 4:15 AM Burton, Ross  wrote:

> I honestly don't see why this has to belong in meta-openembedded and can't
> live in a standalone repository.
>

I share the same opinion it should probably be
 Repo of its own


> Ross
>
> On 23 November 2017 at 12:09, Hongxu Jia  wrote:
>
>> The meta-installer layer provides a collection of installation
>> programs based on OE platform.
>>
>> One implementation is the target installer 'anaconda', the version
>> is 26.21.11 which is based on Fedora 26.
>>
>> The anacoda requires:
>> - systemd as init manager
>> - python3
>> - dnf2/rpm4
>> - gobject-introspection which requires qemu-usermode
>>   in MACHINE_FEATURES
>>
>> The anaconda provides:
>> - graphic install and text install.
>>
>> - package based (dnf/rpm) install and image (copy)
>>   based install.
>>
>> - package based (dnf/rpm) install from local and
>>   remote rpm sources such as CDs and DVDs, images
>>   stored on a hard drive, NFS, HTTP, and FTP.
>>
>> - kickstart install which provides a fully unattended
>>   installation that can be duplicated on scores of machines.
>>
>> - install over VNC on headless machines.
>>
>> - timezone setting.
>>
>> - root password setting.
>>
>> - user account creation.
>>
>> - a variety of advanced storage devices including
>>   LVM, Btrfs, Ext4, and filesystem encryption.
>>
>> TODO (currently not support):
>> - keyboard setting
>>
>> - language support setting
>>
>> - network & host name setting
>>
>> //Hongxu
>>
>> The following changes since commit
>> 34aa4c3202b427f59f843dc43a4e1afda4f81d13:
>>
>>   usb-modeswitch: add usb-modeswitch@.service (2017-11-19 13:45:38 -0800)
>>
>> are available in the git repository at:
>>
>>   git://git.openembedded.org/openembedded-core-contrib
>> hongxu/meta-installer
>>
>> http://cgit.openembedded.org/openembedded-core-contrib/log/?h=hongxu/meta-installer
>>
>> Hongxu Jia (15):
>>   meta-installer: create layer
>>   meta-installer: add kernel config
>>   meta-installer: add anaconda support for target build
>>   meta-installer: add distro anaconda for host build
>>   meta-installer: add systemd/systemd-serialgetty bbappend
>>   meta-installer: add gtk+3 bbappend
>>   meta-installer: add initramfs-live-boot bbappend
>>   meta-installer: add xserver-xf86-config bbappend
>>   meta-installer: add multipath-tools bbappend
>>   meta-installer: add recipe packagegroup-installer-x11-anaconda
>>   meta-installer: add recipe yocto-compat-logos
>>   meta-installer: add recipe anaconda-init
>>   meta-installer: add recipe anaconda 26.21.11
>>   meta-installer: add recipe core-image-anaconda
>>   meta-installer: add recipe core-image-anaconda-initramfs
>>
>>  meta-installer/COPYING.MIT |  17 +
>>  meta-installer/README  |  47 ++
>>  meta-installer/README.anaconda | 341 
>>  meta-installer/classes/anaconda_image.bbclass  | 321 +++
>>  meta-installer/classes/anaconda_kernel.bbclass |  14 +
>>  .../classes/anaconda_support_image.bbclass |  40 ++
>>  .../classes/anaconda_support_kernel.bbclass|   8 +
>>  meta-installer/conf/distro/anaconda.conf   |  33 ++
>>  meta-installer/conf/layer.conf |  31 ++
>>  meta-installer/licenses/FLTK   | 530
>> ++
>>  .../systemd/files/serial-getty@.service|  40 ++
>>  .../systemd/files/serial-screen-anaconda.sh|   5 +
>>  .../systemd/systemd-serialgetty.bbappend   |  12 +
>>  .../recipes-core/systemd/systemd_%.bbappend|   6 +
>>  ...for-anaconda-installer-while-loading-libA.patch |  84 +++
>>  .../recipes-gnome/gtk+/gtk+3_%.%.%.bbappend|   3 +
>>  .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |  12 +
>>  .../anaconda-init/anaconda-init.bb |  77 +++
>>  .../anaconda-init/anaconda-init/COPYING| 339 
>>  .../anaconda-init/anaconda-init/Xusername  |   1 +
>>  .../anaconda-init/anaconda-init/anaconda-init  | 362 +
>>  .../anaconda-init/anaconda-init-screen@.service|  22 +
>>  .../anaconda-init/anaconda-init.service|  13 +
>>  .../anaconda-init/anaconda-init.target |   6 +
>>  .../anaconda/files/0001-do-not-support-po.patch|  41 ++
>>  ...02-widgets-Makefile.am-do-not-compile-doc.patch |  28 +
>>  ...t-Use-system-Python-when-running-Anaconda.patch |  42 ++
>>  ...4-pyanaconda-flags.py-drop-selinux-module.patch |  48 ++
>>  ...ckage-site-dir-for-installclass-searching.patch |  38 ++
>>  ...06-do-not-load-the-system-wide-Xresources.patch |  53 ++
>>  .../0007-tweak-iso-mount-dir-and-kernel-name.patch |  95 
>>  .../0008-dnfpayload.py-customize-for-WRLinux.patch | 597
>> +
>>  ...cessary-noverifyssl-for-http-ftp-protocol.patch |  32 ++
>>  .../0010-dynamic-detect-workable-locale.patch  |  77 +++
>>  

Re: [oe] [meta-oe][PATCH] Fix PACKAGES assignment for fftw

2017-11-23 Thread Andreas Müller
On Thu, Nov 23, 2017 at 3:40 PM, Koen Kooi 
wrote:

> Op 23-11-17 om 14:25 schreef Vladan Jovanovic:
> > fftw recipe using wrong operator for modifying PACKAGES variable.
>
> Please explain what's wrong with it and show a buildhistory-diff between
> the 2 builds.
>
>
> > ---
> >  meta-oe/recipes-support/fftw/fftw_3.3.6.bb | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> > index ed14e16..e13684c 100644
> > --- a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> > +++ b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> > @@ -65,12 +65,12 @@ do_install() {
> >  }
> >
> >
> > -PACKAGES =+ "libfftw libfftwl libfftwf"
> > +PACKAGES += "libfftw libfftwl libfftwf"
> >  FILES_libfftw = "${libdir}/libfftw3.so.* ${libdir}/libfftw3_*.so.*"
> >  FILES_libfftwl = "${libdir}/libfftw3l.so.* ${libdir}/libfftw3l_*.so.*"
> >  FILES_libfftwf = "${libdir}/libfftw3f.so.* ${libdir}/libfftw3f_*.so.*"
> >
> > -PACKAGES =+ "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
> > +PACKAGES += "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
> >  FILES_fftw-wisdom = "${bindir}/fftw-wisdom"
> >  FILES_fftwl-wisdom = "${bindir}/fftwl-wisdom"
> >  FILES_fftwf-wisdom = "${bindir}/fftwf-wisdom"
> >
>
>
> NAK: This breaks packaging: All libdir binaries go to fftw package. Split
was intended.

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


Re: [oe] [meta-oe][PATCH] Fix PACKAGES assignment for fftw

2017-11-23 Thread Koen Kooi
Op 23-11-17 om 14:25 schreef Vladan Jovanovic:
> fftw recipe using wrong operator for modifying PACKAGES variable.

Please explain what's wrong with it and show a buildhistory-diff between the 2 
builds.


> ---
>  meta-oe/recipes-support/fftw/fftw_3.3.6.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb 
> b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> index ed14e16..e13684c 100644
> --- a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> +++ b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> @@ -65,12 +65,12 @@ do_install() {
>  }
>  
>  
> -PACKAGES =+ "libfftw libfftwl libfftwf"
> +PACKAGES += "libfftw libfftwl libfftwf"
>  FILES_libfftw = "${libdir}/libfftw3.so.* ${libdir}/libfftw3_*.so.*"
>  FILES_libfftwl = "${libdir}/libfftw3l.so.* ${libdir}/libfftw3l_*.so.*"
>  FILES_libfftwf = "${libdir}/libfftw3f.so.* ${libdir}/libfftw3f_*.so.*"
>  
> -PACKAGES =+ "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
> +PACKAGES += "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
>  FILES_fftw-wisdom = "${bindir}/fftw-wisdom"
>  FILES_fftwl-wisdom = "${bindir}/fftwl-wisdom"
>  FILES_fftwf-wisdom = "${bindir}/fftwf-wisdom"
> 


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


Re: [oe] [meta-oe][PATCH] Fix PACKAGES assignment for fftw

2017-11-23 Thread Burton, Ross
You should explain why its the wrong operator, as =+ is as valid as += is.

Ross

On 23 November 2017 at 13:25, Vladan Jovanovic 
wrote:

> fftw recipe using wrong operator for modifying PACKAGES variable.
> ---
>  meta-oe/recipes-support/fftw/fftw_3.3.6.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> index ed14e16..e13684c 100644
> --- a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> +++ b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
> @@ -65,12 +65,12 @@ do_install() {
>  }
>
>
> -PACKAGES =+ "libfftw libfftwl libfftwf"
> +PACKAGES += "libfftw libfftwl libfftwf"
>  FILES_libfftw = "${libdir}/libfftw3.so.* ${libdir}/libfftw3_*.so.*"
>  FILES_libfftwl = "${libdir}/libfftw3l.so.* ${libdir}/libfftw3l_*.so.*"
>  FILES_libfftwf = "${libdir}/libfftw3f.so.* ${libdir}/libfftw3f_*.so.*"
>
> -PACKAGES =+ "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
> +PACKAGES += "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
>  FILES_fftw-wisdom = "${bindir}/fftw-wisdom"
>  FILES_fftwl-wisdom = "${bindir}/fftwl-wisdom"
>  FILES_fftwf-wisdom = "${bindir}/fftwf-wisdom"
> --
> 1.9.1
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [PATCH] neon: add the recipe from oe-core

2017-11-23 Thread Alexander Kanavin

On 11/23/2017 02:06 PM, Martin Jansa wrote:

https://www.openembedded.org/wiki/Styleguide#Format_Guidelines


Alright. I resent the patch, as I don't want to start a style war, but 
(as discussed previously) I will resist any attempts to enforce 
indentation in oe-core. We need to prioritize what we spend our time on 
ruthlessly, considering the project is constantly under-staffed.


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


[oe] [PATCH] neon: add the recipe from oe-core

2017-11-23 Thread Alexander Kanavin
It is still required by libmusicbrainz, but is no longer needed
by oe-core. Switch the upstream to debian as webdav.org is down.

Signed-off-by: Alexander Kanavin 
---
 meta-oe/recipes-support/neon/neon/pkgconfig.patch | 15 +
 meta-oe/recipes-support/neon/neon_0.30.2.bb   | 38 +++
 2 files changed, 53 insertions(+)
 create mode 100644 meta-oe/recipes-support/neon/neon/pkgconfig.patch
 create mode 100644 meta-oe/recipes-support/neon/neon_0.30.2.bb

diff --git a/meta-oe/recipes-support/neon/neon/pkgconfig.patch 
b/meta-oe/recipes-support/neon/neon/pkgconfig.patch
new file mode 100644
index 0..239dba8e2
--- /dev/null
+++ b/meta-oe/recipes-support/neon/neon/pkgconfig.patch
@@ -0,0 +1,15 @@
+Upstream-Status: Inappropriate [configuration]
+
+---
+ neon.pc.in |2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- neon-0.30.1.orig/neon.pc.in
 neon-0.30.1/neon.pc.in
+@@ -7,5 +7,5 @@ Name: neon
+ Description: HTTP/WebDAV client library
+ Version: @NEON_VERSION@
+ Libs: -L${libdir} -lneon @NEON_PC_LIBS@
+-Libs.private: @NEON_LIBS@
++Libs.private: -L${libdir} -lz -lgcrypt -lgpg-error -lexpat -lgnutls
+ Cflags: -I${includedir}/neon @NEON_CFLAGS@
diff --git a/meta-oe/recipes-support/neon/neon_0.30.2.bb 
b/meta-oe/recipes-support/neon/neon_0.30.2.bb
new file mode 100644
index 0..00b79f633
--- /dev/null
+++ b/meta-oe/recipes-support/neon/neon_0.30.2.bb
@@ -0,0 +1,38 @@
+SUMMARY = "An HTTP and WebDAV client library with a C interface"
+HOMEPAGE = "http://www.webdav.org/neon/;
+SECTION = "libs"
+LICENSE = "LGPLv2+"
+LIC_FILES_CHKSUM = 
"file://src/COPYING.LIB;md5=f30a9716ef3762e3467a2f62bf790f0a \
+
file://src/ne_utils.h;beginline=1;endline=20;md5=2caca609538eddaa6f6adf120a218037"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/n/neon27/neon27_${PV}.orig.tar.gz \
+   file://pkgconfig.patch \
+  "
+
+SRC_URI[md5sum] = "e28d77bf14032d7f5046b3930704ef41"
+SRC_URI[sha256sum] = 
"db0bd8cdec329b48f53a6f00199c92d5ba40b0f015b153718d1b15d3d967fbca"
+
+inherit autotools binconfig-disabled lib_package pkgconfig
+
+# Enable gnutls or openssl, not both
+PACKAGECONFIG ?= "expat gnutls libproxy webdav zlib"
+PACKAGECONFIG_class-native = "expat gnutls webdav zlib"
+
+PACKAGECONFIG[expat] = "--with-expat,--without-expat,expat"
+PACKAGECONFIG[gnutls] = "--with-ssl=gnutls,,gnutls"
+PACKAGECONFIG[gssapi] = "--with-gssapi,--without-gssapi,krb5"
+PACKAGECONFIG[libproxy] = "--with-libproxy,--without-libproxy,libproxy"
+PACKAGECONFIG[libxml2] = "--with-libxml2,--without-libxml2,libxml2"
+PACKAGECONFIG[openssl] = "--with-ssl=openssl,,openssl"
+PACKAGECONFIG[webdav] = "--enable-webdav,--disable-webdav,"
+PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
+
+EXTRA_OECONF += "--enable-shared"
+
+do_compile_append() {
+oe_runmake -C test
+}
+
+BINCONFIG = "${bindir}/neon-config"
+
+BBCLASSEXTEND = "native"
-- 
2.15.0

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


[oe] [meta-oe][PATCH] Fix PACKAGES assignment for fftw

2017-11-23 Thread Vladan Jovanovic
fftw recipe using wrong operator for modifying PACKAGES variable.
---
 meta-oe/recipes-support/fftw/fftw_3.3.6.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb 
b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
index ed14e16..e13684c 100644
--- a/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
+++ b/meta-oe/recipes-support/fftw/fftw_3.3.6.bb
@@ -65,12 +65,12 @@ do_install() {
 }
 
 
-PACKAGES =+ "libfftw libfftwl libfftwf"
+PACKAGES += "libfftw libfftwl libfftwf"
 FILES_libfftw = "${libdir}/libfftw3.so.* ${libdir}/libfftw3_*.so.*"
 FILES_libfftwl = "${libdir}/libfftw3l.so.* ${libdir}/libfftw3l_*.so.*"
 FILES_libfftwf = "${libdir}/libfftw3f.so.* ${libdir}/libfftw3f_*.so.*"
 
-PACKAGES =+ "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
+PACKAGES += "fftw-wisdom fftwl-wisdom fftwf-wisdom fftw-wisdom-to-conf"
 FILES_fftw-wisdom = "${bindir}/fftw-wisdom"
 FILES_fftwl-wisdom = "${bindir}/fftwl-wisdom"
 FILES_fftwf-wisdom = "${bindir}/fftwf-wisdom"
-- 
1.9.1

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


Re: [oe] [PATCH 00/15] create meta-installer layer

2017-11-23 Thread Hongxu Jia

On 2017年11月23日 20:15, Burton, Ross wrote:
I honestly don't see why this has to belong in meta-openembedded and 
can't live in a standalone repository.




Yes, as a standalone repository is OK, but
previously I submitted all required recipes to OE,
with anacodna, it is complete as a whole.

It is convenience to maintain all of them in one place.

//Hongxu


Ross



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


Re: [oe] [PATCH 00/15] create meta-installer layer

2017-11-23 Thread Burton, Ross
I honestly don't see why this has to belong in meta-openembedded and can't
live in a standalone repository.

Ross

On 23 November 2017 at 12:09, Hongxu Jia  wrote:

> The meta-installer layer provides a collection of installation
> programs based on OE platform.
>
> One implementation is the target installer 'anaconda', the version
> is 26.21.11 which is based on Fedora 26.
>
> The anacoda requires:
> - systemd as init manager
> - python3
> - dnf2/rpm4
> - gobject-introspection which requires qemu-usermode
>   in MACHINE_FEATURES
>
> The anaconda provides:
> - graphic install and text install.
>
> - package based (dnf/rpm) install and image (copy)
>   based install.
>
> - package based (dnf/rpm) install from local and
>   remote rpm sources such as CDs and DVDs, images
>   stored on a hard drive, NFS, HTTP, and FTP.
>
> - kickstart install which provides a fully unattended
>   installation that can be duplicated on scores of machines.
>
> - install over VNC on headless machines.
>
> - timezone setting.
>
> - root password setting.
>
> - user account creation.
>
> - a variety of advanced storage devices including
>   LVM, Btrfs, Ext4, and filesystem encryption.
>
> TODO (currently not support):
> - keyboard setting
>
> - language support setting
>
> - network & host name setting
>
> //Hongxu
>
> The following changes since commit 34aa4c3202b427f59f843dc43a4e1a
> fda4f81d13:
>
>   usb-modeswitch: add usb-modeswitch@.service (2017-11-19 13:45:38 -0800)
>
> are available in the git repository at:
>
>   git://git.openembedded.org/openembedded-core-contrib
> hongxu/meta-installer
>   http://cgit.openembedded.org/openembedded-core-contrib/log/
> ?h=hongxu/meta-installer
>
> Hongxu Jia (15):
>   meta-installer: create layer
>   meta-installer: add kernel config
>   meta-installer: add anaconda support for target build
>   meta-installer: add distro anaconda for host build
>   meta-installer: add systemd/systemd-serialgetty bbappend
>   meta-installer: add gtk+3 bbappend
>   meta-installer: add initramfs-live-boot bbappend
>   meta-installer: add xserver-xf86-config bbappend
>   meta-installer: add multipath-tools bbappend
>   meta-installer: add recipe packagegroup-installer-x11-anaconda
>   meta-installer: add recipe yocto-compat-logos
>   meta-installer: add recipe anaconda-init
>   meta-installer: add recipe anaconda 26.21.11
>   meta-installer: add recipe core-image-anaconda
>   meta-installer: add recipe core-image-anaconda-initramfs
>
>  meta-installer/COPYING.MIT |  17 +
>  meta-installer/README  |  47 ++
>  meta-installer/README.anaconda | 341 
>  meta-installer/classes/anaconda_image.bbclass  | 321 +++
>  meta-installer/classes/anaconda_kernel.bbclass |  14 +
>  .../classes/anaconda_support_image.bbclass |  40 ++
>  .../classes/anaconda_support_kernel.bbclass|   8 +
>  meta-installer/conf/distro/anaconda.conf   |  33 ++
>  meta-installer/conf/layer.conf |  31 ++
>  meta-installer/licenses/FLTK   | 530
> ++
>  .../systemd/files/serial-getty@.service|  40 ++
>  .../systemd/files/serial-screen-anaconda.sh|   5 +
>  .../systemd/systemd-serialgetty.bbappend   |  12 +
>  .../recipes-core/systemd/systemd_%.bbappend|   6 +
>  ...for-anaconda-installer-while-loading-libA.patch |  84 +++
>  .../recipes-gnome/gtk+/gtk+3_%.%.%.bbappend|   3 +
>  .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |  12 +
>  .../anaconda-init/anaconda-init.bb |  77 +++
>  .../anaconda-init/anaconda-init/COPYING| 339 
>  .../anaconda-init/anaconda-init/Xusername  |   1 +
>  .../anaconda-init/anaconda-init/anaconda-init  | 362 +
>  .../anaconda-init/anaconda-init-screen@.service|  22 +
>  .../anaconda-init/anaconda-init.service|  13 +
>  .../anaconda-init/anaconda-init.target |   6 +
>  .../anaconda/files/0001-do-not-support-po.patch|  41 ++
>  ...02-widgets-Makefile.am-do-not-compile-doc.patch |  28 +
>  ...t-Use-system-Python-when-running-Anaconda.patch |  42 ++
>  ...4-pyanaconda-flags.py-drop-selinux-module.patch |  48 ++
>  ...ckage-site-dir-for-installclass-searching.patch |  38 ++
>  ...06-do-not-load-the-system-wide-Xresources.patch |  53 ++
>  .../0007-tweak-iso-mount-dir-and-kernel-name.patch |  95 
>  .../0008-dnfpayload.py-customize-for-WRLinux.patch | 597
> +
>  ...cessary-noverifyssl-for-http-ftp-protocol.patch |  32 ++
>  .../0010-dynamic-detect-workable-locale.patch  |  77 +++
>  .../files/0011-improve-thread-monitor.patch|  55 ++
>  .../anaconda/files/0012-disable-audit.patch|  64 +++
>  ...py-Change-grub2-settings-to-match-oe-core.patch | 137 +
>  .../files/0014-tweak-detect-kernel-version.patch   |  96 
>  

[oe] [PATCH 15/15] meta-installer: add recipe core-image-anaconda-initramfs

2017-11-23 Thread Hongxu Jia
The initramfs image is used for PXE install (net boot installation)

Signed-off-by: Hongxu Jia 
---
 .../images/core-image-anaconda-initramfs.bb| 33 ++
 1 file changed, 33 insertions(+)
 create mode 100644 
meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb

diff --git 
a/meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb 
b/meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb
new file mode 100644
index 000..8f2dc3b
--- /dev/null
+++ b/meta-installer/recipes-installer/images/core-image-anaconda-initramfs.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "The initramfs contains anaconda installer, which supports \
+PXE install (net boot installation)"
+
+CUSTOMIZE_LOGOS ??= "yocto-compat-logos"
+
+IMAGE_INSTALL = "\
+initramfs-live-boot \
+initramfs-live-install \
+initramfs-live-install-efi \
+busybox udev ldd \
+initscripts \
+${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit', '', d)} \
+sysvinit-inittab \
+base-passwd \
+kernel-modules \
+${CUSTOMIZE_LOGOS} \
+python3-anaconda \
+anaconda-init \
+${@['', 'packagegroup-installer-x11-anaconda'][bool(d.getVar('XSERVER', 
True))]} \
+packagegroup-core-boot \
+packagegroup-core-ssh-openssh \
+"
+
+IMAGE_LINGUAS = "en-us en-gb"
+
+LICENSE = "MIT"
+
+IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
+inherit core-image anaconda_image
+
+IMAGE_ROOTFS_SIZE = "8192"
+INITRAMFS_MAXSIZE ?= "1048576"
+
-- 
2.8.1

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


[oe] [PATCH 14/15] meta-installer: add recipe core-image-anaconda

2017-11-23 Thread Hongxu Jia
In the host build, it generates a live iso image which runs anaconda
to do the installation.

Signed-off-by: Hongxu Jia 
---
 .../images/core-image-anaconda.bb  | 34 ++
 1 file changed, 34 insertions(+)
 create mode 100644 
meta-installer/recipes-installer/images/core-image-anaconda.bb

diff --git a/meta-installer/recipes-installer/images/core-image-anaconda.bb 
b/meta-installer/recipes-installer/images/core-image-anaconda.bb
new file mode 100644
index 000..9f50ca3
--- /dev/null
+++ b/meta-installer/recipes-installer/images/core-image-anaconda.bb
@@ -0,0 +1,34 @@
+DESCRIPTION = "An image with Anaconda to do installation."
+
+LICENSE = "MIT"
+
+# Support installation from initrd boot
+do_image_complete[depends] += "${PN}-initramfs:do_image_complete"
+
+DEPENDS += "isomd5sum-native \
+"
+
+CUSTOMIZE_LOGOS ??= "yocto-compat-logos"
+
+# We override what gets set in core-image.bbclass
+IMAGE_INSTALL = "\
+packagegroup-core-boot \
+packagegroup-core-ssh-openssh \
+${@['', 'packagegroup-installer-x11-anaconda'][bool(d.getVar('XSERVER', 
True))]} \
+python3-anaconda \
+anaconda-init \
+kernel-modules \
+${CUSTOMIZE_LOGOS} \
+dhcp-client \
+ldd \
+"
+IMAGE_LINGUAS = "en-us en-gb"
+
+# Generate live image
+IMAGE_FSTYPES_remove = "wic wic.bmap"
+IMAGE_FSTYPES_append = " live"
+NOHDD = "1"
+
+IMAGE_ROOTFS_EXTRA_SPACE =" + 102400"
+
+inherit core-image anaconda_image
-- 
2.8.1

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


[oe] [PATCH 12/15] meta-installer: add recipe anaconda-init

2017-11-23 Thread Hongxu Jia
The init script to boot anaconda at startup.

Signed-off-by: Hongxu Jia 
---
 .../anaconda-init/anaconda-init.bb |  77 +
 .../anaconda-init/anaconda-init/COPYING| 339 +++
 .../anaconda-init/anaconda-init/Xusername  |   1 +
 .../anaconda-init/anaconda-init/anaconda-init  | 362 +
 .../anaconda-init/anaconda-init-screen@.service|  22 ++
 .../anaconda-init/anaconda-init.service|  13 +
 .../anaconda-init/anaconda-init.target |   6 +
 7 files changed, 820 insertions(+)
 create mode 100644 
meta-installer/recipes-installer/anaconda-init/anaconda-init.bb
 create mode 100644 
meta-installer/recipes-installer/anaconda-init/anaconda-init/COPYING
 create mode 100644 
meta-installer/recipes-installer/anaconda-init/anaconda-init/Xusername
 create mode 100644 
meta-installer/recipes-installer/anaconda-init/anaconda-init/anaconda-init
 create mode 100644 
meta-installer/recipes-installer/anaconda-init/anaconda-init/anaconda-init-screen@.service
 create mode 100644 
meta-installer/recipes-installer/anaconda-init/anaconda-init/anaconda-init.service
 create mode 100644 
meta-installer/recipes-installer/anaconda-init/anaconda-init/anaconda-init.target

diff --git a/meta-installer/recipes-installer/anaconda-init/anaconda-init.bb 
b/meta-installer/recipes-installer/anaconda-init/anaconda-init.bb
new file mode 100644
index 000..a7da0c5
--- /dev/null
+++ b/meta-installer/recipes-installer/anaconda-init/anaconda-init.bb
@@ -0,0 +1,77 @@
+DESCRIPTION = "Simple Init Script for Anaconda"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+SRC_URI = "file://anaconda-init \
+   file://anaconda-init.service \
+   file://anaconda-init-screen@.service \
+   file://anaconda-init.target \
+   file://Xusername \
+   file://COPYING"
+
+S = "${WORKDIR}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+# For nm-online
+#RDEPENDS_${PN} = "networkmanager-tests"
+
+# For mount -oloop=/dev/loopX, busybox's mount doesn't support this.
+RDEPENDS_${PN} = "util-linux"
+
+# While systemd, we need screen to control anaconda-init first boot
+RDEPENDS_${PN} += " \
+${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'screen', '', d)} \
+"
+
+inherit systemd
+
+SYSTEMD_SERVICE_${PN} = "anaconda-init.service \
+ anaconda-init-screen@.service \
+ anaconda-init.target \
+"
+
+CLEANBROKEN = "1"
+
+do_install() {
+install -d ${D}/${sbindir}
+install -m 0755 ${WORKDIR}/anaconda-init ${D}${sbindir}/anaconda-init
+if [ -n "${EULA_DIR}" ]; then
+sed -i "s#@EULA_DIR@#${EULA_DIR}#g" ${D}${sbindir}/anaconda-init
+else
+bbwarn "EULA_DIR is NULL, please set it in a local conf"
+bbwarn "The EULA_DIR helps user to locate End User License Agreement 
during image installation"
+sed -i "s#@EULA_DIR@##g" ${D}${sbindir}/anaconda-init
+fi
+install -d ${D}/${sysconfdir}
+install -d ${D}/${sysconfdir}/init.d
+ln -sf ${sbindir}/anaconda-init ${D}/${sysconfdir}/init.d/anaconda-init
+install -d ${D}${systemd_unitdir}/system
+install -m 0644 ${WORKDIR}/anaconda-init.service \
+${WORKDIR}/anaconda-init-screen@.service \
+${WORKDIR}/anaconda-init.target \
+   ${D}${systemd_unitdir}/system
+
+
+sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@ROOT_HOME@,${ROOT_HOME},g' 
${D}${systemd_unitdir}/system/anaconda-init.service \
+   
${D}${systemd_unitdir}/system/anaconda-init-screen@.service
+if [ "${ROOTLESS_X}" = "1" ] ; then
+install -d ${D}/etc/X11
+install Xusername ${D}/etc/X11
+fi
+}
+
+inherit update-rc.d useradd
+
+INITSCRIPT_NAME = "anaconda-init"
+INITSCRIPT_PARAMS = "start 30 2 3 4 5 . stop 20 0 1 6 ."
+
+# Use fixed Xusername of xuser for now, this will need to be
+# fixed if the Xusername changes from xuser
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM_${PN} = "--create-home \
+   --groups video,tty,audio \
+   --user-group xuser"
+
+# Location of End User License Agreement
+EULA_DIR ??= ""
diff --git 
a/meta-installer/recipes-installer/anaconda-init/anaconda-init/COPYING 
b/meta-installer/recipes-installer/anaconda-init/anaconda-init/COPYING
new file mode 100644
index 000..d511905
--- /dev/null
+++ b/meta-installer/recipes-installer/anaconda-init/anaconda-init/COPYING
@@ -0,0 +1,339 @@
+   GNU GENERAL PUBLIC LICENSE
+  Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+   Preamble
+
+  The 

[oe] [PATCH 10/15] meta-installer: add recipe packagegroup-installer-x11-anaconda

2017-11-23 Thread Hongxu Jia
It provides desktop X11 applications to support anaconda.

Signed-off-by: Hongxu Jia 
---
 .../packagegroup-installer-x11-anaconda.bb | 28 ++
 1 file changed, 28 insertions(+)
 create mode 100644 
meta-installer/recipes-installer/packagegroups/packagegroup-installer-x11-anaconda.bb

diff --git 
a/meta-installer/recipes-installer/packagegroups/packagegroup-installer-x11-anaconda.bb
 
b/meta-installer/recipes-installer/packagegroups/packagegroup-installer-x11-anaconda.bb
new file mode 100644
index 000..5255b3a
--- /dev/null
+++ 
b/meta-installer/recipes-installer/packagegroups/packagegroup-installer-x11-anaconda.bb
@@ -0,0 +1,28 @@
+DESCRIPTION = "Tasks for desktop X11 applications to support anaconda"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+inherit packagegroup distro_features_check
+REQUIRED_DISTRO_FEATURES = "x11"
+
+XSERVER ??= ""
+
+RDEPENDS_packagegroup-installer-x11-anaconda = "\
+dbus \
+xinput-calibrator \
+xserver-nodm-init \
+${XSERVER} \
+liberation-fonts \
+xauth \
+xhost \
+xset \
+settings-daemon \
+xrandr \
+libsdl \
+metacity \
+gnome-themes \
+adwaita-icon-theme \
+pango \
+pango-modules \
+createrepo-c"
+
-- 
2.8.1

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


[oe] [PATCH 09/15] meta-installer: add multipath-tools bbappend

2017-11-23 Thread Hongxu Jia
- Explicitly disable auto service to help installer work

- Copy multipath.conf from example

The bbappend works only if DISTRO = "anaconda".

Signed-off-by: Hongxu Jia 
---
 .../recipes-support/multipath-tools/multipath-tools_%.bbappend| 8 
 1 file changed, 8 insertions(+)
 create mode 100644 
meta-installer/recipes-support/multipath-tools/multipath-tools_%.bbappend

diff --git 
a/meta-installer/recipes-support/multipath-tools/multipath-tools_%.bbappend 
b/meta-installer/recipes-support/multipath-tools/multipath-tools_%.bbappend
new file mode 100644
index 000..5bd2b03
--- /dev/null
+++ b/meta-installer/recipes-support/multipath-tools/multipath-tools_%.bbappend
@@ -0,0 +1,8 @@
+SYSTEMD_AUTO_ENABLE_anaconda = "disable"
+
+do_install_append_anaconda () {
+install -d ${D}${sysconfdir}/multipath
+install -m 0644 ${WORKDIR}/multipath.conf.example \
+${D}${sysconfdir}/multipath.conf
+}
+
-- 
2.8.1

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


[oe] [PATCH 08/15] meta-installer: add xserver-xf86-config bbappend

2017-11-23 Thread Hongxu Jia
Tweak display rate from "640x480" to "1024x768". The xorg.conf
is already overridden by qemux86-64 in oe-core, so we have to
use sed to do the modification.

The bbappend works only if DISTRO = "anaconda".

Signed-off-by: Hongxu Jia 
---
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend| 12 
 1 file changed, 12 insertions(+)
 create mode 100644 
meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend

diff --git 
a/meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend 
b/meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
new file mode 100644
index 000..5447273
--- /dev/null
+++ 
b/meta-installer/recipes-graphics/xorg-xserver/xserver-xf86-config_0.1.bbappend
@@ -0,0 +1,12 @@
+do_install_prepend_qemux86-64_anaconda () {
+if test -s ${WORKDIR}/xorg.conf; then
+sed -i 's/Modes *"640x480"/Modes"1024x768"/g' ${WORKDIR}/xorg.conf
+fi
+}
+
+do_install_prepend_qemux86_anaconda () {
+if test -s ${WORKDIR}/xorg.conf; then
+sed -i 's/Modes *"640x480"/Modes"1024x768"/g' ${WORKDIR}/xorg.conf
+fi
+}
+
-- 
2.8.1

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


[oe] [PATCH 07/15] meta-installer: add initramfs-live-boot bbappend

2017-11-23 Thread Hongxu Jia
Customize init-live.sh to override the one in oe-core

- Add option to enter a debug shell in initrd

- Add option to run anaconda installer from initrd.
  (required by PXE install)

- Remove -c while invoking switch_root which
  is not supported by util-linux

The bbappend works only if DISTRO = "anaconda".

Signed-off-by: Hongxu Jia 
---
 .../initrdscripts/files/init-live.sh   | 249 +
 .../initrdscripts/initramfs-live-boot_1.0.bbappend |   5 +
 2 files changed, 254 insertions(+)
 create mode 100644 
meta-installer/recipes-installer/initrdscripts/files/init-live.sh
 create mode 100644 
meta-installer/recipes-installer/initrdscripts/initramfs-live-boot_1.0.bbappend

diff --git a/meta-installer/recipes-installer/initrdscripts/files/init-live.sh 
b/meta-installer/recipes-installer/initrdscripts/files/init-live.sh
new file mode 100644
index 000..965375b
--- /dev/null
+++ b/meta-installer/recipes-installer/initrdscripts/files/init-live.sh
@@ -0,0 +1,249 @@
+#!/bin/sh
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+ROOT_MOUNT="/rootfs"
+ROOT_IMAGE="rootfs.img"
+MOUNT="/bin/mount"
+UMOUNT="/bin/umount"
+ISOLINUX=""
+
+ROOT_DISK=""
+
+# Copied from initramfs-framework. The core of this script probably should be
+# turned into initramfs-framework modules to reduce duplication.
+udev_daemon() {
+   OPTIONS="/sbin/udev/udevd /sbin/udevd /lib/udev/udevd 
/lib/systemd/systemd-udevd"
+
+   for o in $OPTIONS; do
+   if [ -x "$o" ]; then
+   echo $o
+   return 0
+   fi
+   done
+
+   return 1
+}
+
+_UDEV_DAEMON=`udev_daemon`
+
+early_setup() {
+mkdir -p /proc
+mkdir -p /sys
+mount -t proc proc /proc
+mount -t sysfs sysfs /sys
+mount -t devtmpfs none /dev
+
+# support modular kernel
+modprobe isofs 2> /dev/null
+
+mkdir -p /run
+mkdir -p /var/run
+
+$_UDEV_DAEMON --daemon
+udevadm trigger --action=add
+}
+
+read_args() {
+[ -z "$CMDLINE" ] && CMDLINE=`cat /proc/cmdline`
+for arg in $CMDLINE; do
+optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
+case $arg in
+root=*)
+ROOT_DEVICE=$optarg ;;
+rootimage=*)
+ROOT_IMAGE=$optarg ;;
+rootfstype=*)
+modprobe $optarg 2> /dev/null ;;
+LABEL=*)
+label=$optarg ;;
+video=*)
+video_mode=$arg ;;
+vga=*)
+vga_mode=$arg ;;
+console=*)
+if [ -z "${console_params}" ]; then
+console_params=$arg
+else
+console_params="$console_params $arg"
+fi ;;
+shelltimeout*)
+if [ -z "$optarg" ]; then
+shelltimeout=30
+else
+shelltimeout=$optarg
+fi ;;
+debugshell)
+debugshell=y
+esac
+done
+}
+
+boot_live_root() {
+# Watches the udev event queue, and exits if all current events are handled
+udevadm settle --timeout=3
+killall "${_UDEV_DAEMON##*/}" 2>/dev/null
+
+# Allow for identification of the real root even after boot
+mkdir -p  ${ROOT_MOUNT}/media/realroot
+mount -n --move "/run/media/${ROOT_DISK}" ${ROOT_MOUNT}/media/realroot
+
+# Umount other media for anaconda
+for dir in `awk '/\/dev.* \/run\/media/{print $2}' /proc/mounts`; do
+umount $dir
+done
+mount -n --move /proc ${ROOT_MOUNT}/proc
+mount -n --move /sys ${ROOT_MOUNT}/sys
+mount -n --move /dev ${ROOT_MOUNT}/dev
+
+cd $ROOT_MOUNT
+
+exec switch_root $ROOT_MOUNT /sbin/init $CMDLINE ||
+fatal "Couldn't switch_root, dropping to shell"
+}
+
+fatal() {
+echo $1 >$CONSOLE
+echo >$CONSOLE
+exec sh
+}
+
+early_setup
+
+[ -z "$CONSOLE" ] && CONSOLE="/dev/console"
+
+read_args
+
+if test x$debugshell = xy ; then
+echo "Entering debug shell..."
+exec /bin/sh
+fi
+
+case $label in
+initrd-install)
+# Watches the udev event queue, and exits if all current events are handled
+udevadm settle --timeout=3
+killall "${_UDEV_DAEMON##*/}" 2>/dev/null
+for dir in `awk '/\/dev.* \/run\/media/{print $2}' /proc/mounts`; do
+umount $dir
+done
+echo "" > /etc/udev/scripts/mount.sh
+echo "init_bin /sbin/init"
+[ -x /sbin/init ] && exec /sbin/init
+;;
+esac
+
+
+echo "Waiting for removable media..."
+C=0
+while true
+do
+  for i in `ls /run/media 2>/dev/null`; do
+  if [ -f /run/media/$i/$ROOT_IMAGE ] ; then
+   found="yes"
+   ROOT_DISK="$i"
+   break
+ elif [ -f /run/media/$i/isolinux/$ROOT_IMAGE ]; then
+   found="yes"
+   ISOLINUX="isolinux"
+   ROOT_DISK="$i"
+   break
+  fi
+  done
+  if [ "$found" = "yes" ]; then
+  

[oe] [PATCH 05/15] meta-installer: add systemd/systemd-serialgetty bbappend

2017-11-23 Thread Hongxu Jia
Use screen for text install, the serail console and tty1
will have the same input/output.

The bbappend works only if DISTRO = "anaconda".

Signed-off-by: Hongxu Jia 
---
 .../systemd/files/serial-getty@.service| 40 ++
 .../systemd/files/serial-screen-anaconda.sh|  5 +++
 .../systemd/systemd-serialgetty.bbappend   | 12 +++
 .../recipes-core/systemd/systemd_%.bbappend|  6 
 4 files changed, 63 insertions(+)
 create mode 100644 
meta-installer/recipes-core/systemd/files/serial-getty@.service
 create mode 100644 
meta-installer/recipes-core/systemd/files/serial-screen-anaconda.sh
 create mode 100644 
meta-installer/recipes-core/systemd/systemd-serialgetty.bbappend
 create mode 100644 meta-installer/recipes-core/systemd/systemd_%.bbappend

diff --git a/meta-installer/recipes-core/systemd/files/serial-getty@.service 
b/meta-installer/recipes-core/systemd/files/serial-getty@.service
new file mode 100644
index 000..52530a3
--- /dev/null
+++ b/meta-installer/recipes-core/systemd/files/serial-getty@.service
@@ -0,0 +1,40 @@
+#  This file is part of systemd.
+#
+#  systemd is free software; you can redistribute it and/or modify it
+#  under the terms of the GNU Lesser General Public License as published by
+#  the Free Software Foundation; either version 2.1 of the License, or
+#  (at your option) any later version.
+
+[Unit]
+Description=Serial Getty on %I
+Documentation=man:agetty(8) man:systemd-getty-generator(8)
+Documentation=http://0pointer.de/blog/projects/serial-console.html
+BindsTo=dev-%i.device
+Requires=anaconda-init.service
+After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
+After=rc-local.service
+After=anaconda-init.target anaconda-init.service
+
+# If additional gettys are spawned during boot then we should make
+# sure that this is synchronized before getty.target, even though
+# getty.target didn't actually pull it in.
+Before=getty.target
+IgnoreOnIsolate=yes
+
+[Service]
+Environment=TERM=xterm HOME=@ROOT_HOME@ PATH=/usr/bin:/bin:/sbin:/usr/sbin 
LANG=en_US.UTF-8
+ExecStart=-/sbin/agetty -8 --keep-baud  -n -l /bin/bash -o '--login' %I 
@BAUDRATE@ $TERM
+WorkingDirectory=@ROOT_HOME@
+Type=idle
+Restart=always
+RestartSec=0
+UtmpIdentifier=%I
+TTYPath=/dev/%I
+TTYReset=yes
+TTYVHangup=yes
+KillMode=process
+IgnoreSIGPIPE=no
+SendSIGHUP=yes
+
+[Install]
+WantedBy=getty.target
diff --git 
a/meta-installer/recipes-core/systemd/files/serial-screen-anaconda.sh 
b/meta-installer/recipes-core/systemd/files/serial-screen-anaconda.sh
new file mode 100644
index 000..8ab9471
--- /dev/null
+++ b/meta-installer/recipes-core/systemd/files/serial-screen-anaconda.sh
@@ -0,0 +1,5 @@
+# Detect if it is serial tty, if yes, we need to invoke
+# screen to attach anaconda
+console=`/usr/bin/tty`
+[ "${console##/dev/ttyS}" != "${console}" ] && /usr/bin/screen -x anaconda-init
+
diff --git a/meta-installer/recipes-core/systemd/systemd-serialgetty.bbappend 
b/meta-installer/recipes-core/systemd/systemd-serialgetty.bbappend
new file mode 100644
index 000..afbd9b6
--- /dev/null
+++ b/meta-installer/recipes-core/systemd/systemd-serialgetty.bbappend
@@ -0,0 +1,12 @@
+FILESEXTRAPATHS_prepend_anaconda := "${THISDIR}/files:"
+
+SRC_URI_append_anaconda = " file://serial-getty@.service \
+   file://serial-screen-anaconda.sh \
+"
+
+do_install_append_anaconda() {
+   install -d ${D}${sysconfdir}/profile.d
+   install -m 644 ${WORKDIR}/serial-screen-anaconda.sh 
${D}${sysconfdir}/profile.d/
+
+   sed -i -e 's,@ROOT_HOME@,${ROOT_HOME},g' 
${D}${systemd_unitdir}/system/serial-getty@.service
+}
diff --git a/meta-installer/recipes-core/systemd/systemd_%.bbappend 
b/meta-installer/recipes-core/systemd/systemd_%.bbappend
new file mode 100644
index 000..3145f68
--- /dev/null
+++ b/meta-installer/recipes-core/systemd/systemd_%.bbappend
@@ -0,0 +1,6 @@
+FILESEXTRAPATHS_prepend_anaconda := "${THISDIR}/files:"
+
+do_install_append_anaconda() {
+   ln -nsf ${systemd_unitdir}/system/anaconda-init-screen@.service \
+   
${D}${sysconfdir}/systemd/system/getty.target.wants/getty@tty1.service
+}
-- 
2.8.1

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


[oe] [PATCH 06/15] meta-installer: add gtk+3 bbappend

2017-11-23 Thread Hongxu Jia
Here is easy way to reproduce the failure:
...
root@localhost:~# python
>>> from gi.repository import Gtk, AnacondaWidgets
>>> builder = Gtk.Builder()
>>> builder.get_type_from_name("AnacondaStandaloneWindow")

...

Which is expected:
...
root@localhost:~# python
>>> from gi.repository import Gtk, AnacondaWidgets
>>> builder = Gtk.Builder()
>>> builder.get_type_from_name("AnacondaStandaloneWindow")

...

The root cause is the issue of 'g_module_open' and 'g_module_symbol' in 
libgmodule-2.0.so.0:
While invoking 
'g_module_open("libAnacondaWidgets.so.4.0.0",G_MODULE_BIND_LAZY);',
the following invoking 'g_module_open(NULL, G_MODULE_BIND_LAZY);'
could not find its symbol by invoking g_module_symbol.

So hardcode to load the anaconda module explicitly to workaround
failure while anaconda installer loading libAnacondaWidgets.

The bbappend works only if DISTRO = "anaconda".

Signed-off-by: Hongxu Jia 
---
 ...for-anaconda-installer-while-loading-libA.patch | 84 ++
 .../recipes-gnome/gtk+/gtk+3_%.%.%.bbappend|  3 +
 2 files changed, 87 insertions(+)
 create mode 100644 
meta-installer/recipes-gnome/gtk+/files/workaround-for-anaconda-installer-while-loading-libA.patch
 create mode 100644 meta-installer/recipes-gnome/gtk+/gtk+3_%.%.%.bbappend

diff --git 
a/meta-installer/recipes-gnome/gtk+/files/workaround-for-anaconda-installer-while-loading-libA.patch
 
b/meta-installer/recipes-gnome/gtk+/files/workaround-for-anaconda-installer-while-loading-libA.patch
new file mode 100644
index 000..581618d
--- /dev/null
+++ 
b/meta-installer/recipes-gnome/gtk+/files/workaround-for-anaconda-installer-while-loading-libA.patch
@@ -0,0 +1,84 @@
+From a99480777c259c1ef0db3ac972abae348d930b41 Mon Sep 17 00:00:00 2001
+From: Hongxu Jia 
+Date: Fri, 9 Oct 2015 07:12:36 -0400
+Subject: [PATCH] workaround for anaconda installer while loading
+ libAnacondaWidgets
+
+Here is easy way to reproduce the failure:
+...
+root@localhost:~# python
+>>> from gi.repository import Gtk, AnacondaWidgets
+>>> builder = Gtk.Builder()
+>>> builder.get_type_from_name("AnacondaStandaloneWindow")
+
+...
+
+Which is expected:
+...
+root@localhost:~# python
+>>> from gi.repository import Gtk, AnacondaWidgets
+>>> builder = Gtk.Builder()
+>>> builder.get_type_from_name("AnacondaStandaloneWindow")
+
+...
+
+The root cause is the issue of 'g_module_open' and 'g_module_symbol'
+in libgmodule-2.0.so.0:
+While invoking 'g_module_open("libAnacondaWidgets.so.4.0.0", 
G_MODULE_BIND_LAZY);'
+, the following invoking 'g_module_open(NULL, G_MODULE_BIND_LAZY);' could not
+find its symbol by invoking g_module_symbol.
+
+So we hardcode to load the anaconda module explicitly.
+
+Upstream-Status: inappropriate [oe specific]
+
+Signed-off-by: Hongxu Jia 
+---
+ gtk/gtkbuilder.c | 24 
+ 1 file changed, 24 insertions(+)
+
+diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
+index f9599ab..8315638 100644
+--- a/gtk/gtkbuilder.c
 b/gtk/gtkbuilder.c
+@@ -398,6 +398,27 @@ type_name_mangle (const gchar *name)
+ }
+ 
+ static GType
++_gtk_builder_resolve_type_lazily_anaconda (const gchar *name)
++{
++  static GModule *module = NULL;
++  GTypeGetFunc func;
++  gchar *symbol;
++  GType gtype = G_TYPE_INVALID;
++
++  if (!module)
++  {
++module = g_module_open ("libAnacondaWidgets.so.4", 0);
++  }
++  symbol = type_name_mangle (name);
++  if (g_module_symbol (module, symbol, (gpointer)))
++gtype = func ();
++
++  g_free (symbol);
++
++  return gtype;
++}
++
++static GType
+ _gtk_builder_resolve_type_lazily (const gchar *name)
+ {
+   static GModule *module = NULL;
+@@ -405,6 +426,9 @@ _gtk_builder_resolve_type_lazily (const gchar *name)
+   gchar *symbol;
+   GType gtype = G_TYPE_INVALID;
+ 
++  if (strncmp(name, "Anaconda", strlen("Anaconda")) == 0)
++return _gtk_builder_resolve_type_lazily_anaconda(name);
++
+   if (!module)
+ module = g_module_open (NULL, 0);
+   
+-- 
+1.9.1
+
diff --git a/meta-installer/recipes-gnome/gtk+/gtk+3_%.%.%.bbappend 
b/meta-installer/recipes-gnome/gtk+/gtk+3_%.%.%.bbappend
new file mode 100644
index 000..752b2f1
--- /dev/null
+++ b/meta-installer/recipes-gnome/gtk+/gtk+3_%.%.%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend_anaconda := "${THISDIR}/files:"
+SRC_URI_append_anaconda = " 
file://workaround-for-anaconda-installer-while-loading-libA.patch \
+"
-- 
2.8.1

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


[oe] [PATCH 02/15] meta-installer: add kernel config

2017-11-23 Thread Hongxu Jia
The set of kernel scc/cfg are required by target build and host build.

- For target build, add anaconda_support_kernel to KERNEL_CLASSES

- For host build, add anaconda_kernel to KERNEL_CLASSES

Signed-off-by: Hongxu Jia 
---
 meta-installer/classes/anaconda_kernel.bbclass| 14 ++
 meta-installer/classes/anaconda_support_kernel.bbclass|  8 
 meta-installer/recipes-kernel/linux/files/crypt.cfg   |  2 ++
 meta-installer/recipes-kernel/linux/files/crypt.scc   |  1 +
 meta-installer/recipes-kernel/linux/files/dmthin.cfg  |  1 +
 meta-installer/recipes-kernel/linux/files/dmthin.scc  |  1 +
 meta-installer/recipes-kernel/linux/files/efivars.cfg |  1 +
 meta-installer/recipes-kernel/linux/files/efivars.scc |  1 +
 meta-installer/recipes-kernel/linux/files/ide.cfg |  5 +
 meta-installer/recipes-kernel/linux/files/ide.scc |  1 +
 meta-installer/recipes-kernel/linux/files/liveinstall.cfg |  5 +
 meta-installer/recipes-kernel/linux/files/liveinstall.scc |  1 +
 meta-installer/recipes-kernel/linux/files/multipath.cfg   |  3 +++
 meta-installer/recipes-kernel/linux/files/multipath.scc   |  1 +
 14 files changed, 45 insertions(+)
 create mode 100644 meta-installer/classes/anaconda_kernel.bbclass
 create mode 100644 meta-installer/classes/anaconda_support_kernel.bbclass
 create mode 100644 meta-installer/recipes-kernel/linux/files/crypt.cfg
 create mode 100644 meta-installer/recipes-kernel/linux/files/crypt.scc
 create mode 100644 meta-installer/recipes-kernel/linux/files/dmthin.cfg
 create mode 100644 meta-installer/recipes-kernel/linux/files/dmthin.scc
 create mode 100644 meta-installer/recipes-kernel/linux/files/efivars.cfg
 create mode 100644 meta-installer/recipes-kernel/linux/files/efivars.scc
 create mode 100644 meta-installer/recipes-kernel/linux/files/ide.cfg
 create mode 100644 meta-installer/recipes-kernel/linux/files/ide.scc
 create mode 100644 meta-installer/recipes-kernel/linux/files/liveinstall.cfg
 create mode 100644 meta-installer/recipes-kernel/linux/files/liveinstall.scc
 create mode 100644 meta-installer/recipes-kernel/linux/files/multipath.cfg
 create mode 100644 meta-installer/recipes-kernel/linux/files/multipath.scc

diff --git a/meta-installer/classes/anaconda_kernel.bbclass 
b/meta-installer/classes/anaconda_kernel.bbclass
new file mode 100644
index 000..bc73210
--- /dev/null
+++ b/meta-installer/classes/anaconda_kernel.bbclass
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS_prepend := 
"${LAYER_PATH_meta-installer}/recipes-kernel/linux/files/:"
+SRC_URI_append = " \
+file://dmthin.scc \
+file://crypt.scc \
+file://liveinstall.scc \
+file://efivars.scc \
+file://multipath.scc \
+file://ide.scc \
+"
+
+KERNEL_FEATURES_append = " \
+features/overlayfs/overlayfs.scc \
+cfg/systemd.scc \
+"
diff --git a/meta-installer/classes/anaconda_support_kernel.bbclass 
b/meta-installer/classes/anaconda_support_kernel.bbclass
new file mode 100644
index 000..ee37106
--- /dev/null
+++ b/meta-installer/classes/anaconda_support_kernel.bbclass
@@ -0,0 +1,8 @@
+FILESEXTRAPATHS_prepend := 
"${LAYER_PATH_meta-installer}/recipes-kernel/linux/files/:"
+SRC_URI_append = " \
+file://dmthin.scc \
+file://crypt.scc \
+"
+
+KERNEL_FEATURES_append = " cfg/systemd.scc"
+
diff --git a/meta-installer/recipes-kernel/linux/files/crypt.cfg 
b/meta-installer/recipes-kernel/linux/files/crypt.cfg
new file mode 100644
index 000..2594462
--- /dev/null
+++ b/meta-installer/recipes-kernel/linux/files/crypt.cfg
@@ -0,0 +1,2 @@
+CONFIG_CRYPTO_AES_NI_INTEL=m
+CONFIG_CRYPTO_AES_X86_64=m
diff --git a/meta-installer/recipes-kernel/linux/files/crypt.scc 
b/meta-installer/recipes-kernel/linux/files/crypt.scc
new file mode 100644
index 000..daeab36
--- /dev/null
+++ b/meta-installer/recipes-kernel/linux/files/crypt.scc
@@ -0,0 +1 @@
+kconf non-hardware crypt.cfg
diff --git a/meta-installer/recipes-kernel/linux/files/dmthin.cfg 
b/meta-installer/recipes-kernel/linux/files/dmthin.cfg
new file mode 100644
index 000..1ac07c0
--- /dev/null
+++ b/meta-installer/recipes-kernel/linux/files/dmthin.cfg
@@ -0,0 +1 @@
+CONFIG_DM_THIN_PROVISIONING=y
diff --git a/meta-installer/recipes-kernel/linux/files/dmthin.scc 
b/meta-installer/recipes-kernel/linux/files/dmthin.scc
new file mode 100644
index 000..38cfac7
--- /dev/null
+++ b/meta-installer/recipes-kernel/linux/files/dmthin.scc
@@ -0,0 +1 @@
+kconf non-hardware dmthin.cfg
diff --git a/meta-installer/recipes-kernel/linux/files/efivars.cfg 
b/meta-installer/recipes-kernel/linux/files/efivars.cfg
new file mode 100644
index 000..b9206d9
--- /dev/null
+++ b/meta-installer/recipes-kernel/linux/files/efivars.cfg
@@ -0,0 +1 @@
+CONFIG_EFI_VARS=y
diff --git a/meta-installer/recipes-kernel/linux/files/efivars.scc 
b/meta-installer/recipes-kernel/linux/files/efivars.scc
new file mode 100644
index 000..25bd34d
--- /dev/null
+++ 

[oe] [PATCH 04/15] meta-installer: add distro anaconda for host build

2017-11-23 Thread Hongxu Jia
While DISTRO = "anaconda", it enable features of host build.

The host build requires:

- append anaconda_kernel to KERNEL_CLASSES to add kernel configs

- misc setting in conf/distro/anaconda.conf for host build

- copy package/image from target build to host image

- add rpm packages check

Signed-off-by: Hongxu Jia 
---
 meta-installer/classes/anaconda_image.bbclass | 321 ++
 meta-installer/conf/distro/anaconda.conf  |  33 +++
 2 files changed, 354 insertions(+)
 create mode 100644 meta-installer/classes/anaconda_image.bbclass
 create mode 100644 meta-installer/conf/distro/anaconda.conf

diff --git a/meta-installer/classes/anaconda_image.bbclass 
b/meta-installer/classes/anaconda_image.bbclass
new file mode 100644
index 000..be37a09
--- /dev/null
+++ b/meta-installer/classes/anaconda_image.bbclass
@@ -0,0 +1,321 @@
+RPM_POSTPROCESS_COMMANDS_append = "wrl_installer;"
+
+INSTPRODUCT ?= "${DISTRO_NAME}"
+INSTVER ?= "${DISTRO_VERSION}"
+INSTBUGURL  ?= "http://www.windriver.com/;
+
+# NOTE: Please update anaconda-init when you change INSTALLER_CONFDIR, use "="
+#   but not "?=" since this is not configurable.
+INSTALLER_CONFDIR = "${IMAGE_ROOTFS}/installer-config"
+KICKSTART_FILE ?= ""
+WRL_INSTALLER_CONF ?= ""
+
+build_iso_prepend() {
+   install -d ${ISODIR}
+   ln -snf /.discinfo ${ISODIR}/.discinfo
+   ln -snf /.buildstamp ${ISODIR}/.buildstamp
+   ln -snf /Packages ${ISODIR}/Packages
+}
+
+build_iso_append() {
+   implantisomd5 ${IMGDEPLOYDIR}/${IMAGE_NAME}.iso
+}
+
+# Check WRL_INSTALLER_CONF and copy it to
+# ${IMAGE_ROOTFS}/.buildstamp.$prj_name when exists
+wrl_installer_copy_buildstamp() {
+prj_name=$1
+buildstamp=$2
+if [ -f $buildstamp ]; then
+bbnote "Using $buildstamp as the buildstamp"
+cp $buildstamp ${IMAGE_ROOTFS}/.buildstamp.$prj_name
+else
+bbfatal "Can't find WRL_INSTALLER_CONF: $buildstamp"
+fi
+}
+
+# Hardlink when possible, otherwise copy.
+# $1: src
+# $2: target
+wrl_installer_hardlinktree() {
+src_dev="`stat -c %d $1`"
+if [ -e "$2" ]; then
+tgt_dev="`stat -c %d $2`"
+else
+tgt_dev="`stat -c %d $(dirname $2)`"
+fi
+hdlink=""
+if [ "$src_dev" = "$tgt_dev" ]; then
+hdlink="--link"
+fi
+cp -rvf $hdlink $1 $2
+}
+
+wrl_installer_copy_local_repos() {
+deploy_dir_rpm=$1
+
+if [ -d "$deploy_dir_rpm" ]; then
+echo "Copy rpms from target build to installer image."
+mkdir -p ${IMAGE_ROOTFS}/Packages.$prj_name
+
+: > ${IMAGE_ROOTFS}/Packages.$prj_name/.treeinfo
+echo "[general]" >> ${IMAGE_ROOTFS}/Packages.$prj_name/.treeinfo
+echo "version = ${DISTRO_VERSION}" >> 
${IMAGE_ROOTFS}/Packages.$prj_name/.treeinfo
+
+# Determine the max channel priority
+channel_priority=5
+for pt in $installer_target_archs ; do
+channel_priority=$(expr $channel_priority + 5)
+done
+
+: > ${IMAGE_ROOTFS}/Packages.$prj_name/.feedpriority
+for arch in $installer_target_archs; do
+if [ -d "$deploy_dir_rpm/"$arch -a ! -d 
"${IMAGE_ROOTFS}/Packages.$prj_name/"$arch ]; then
+channel_priority=$(expr $channel_priority - 5)
+echo "$channel_priority $arch" >> 
${IMAGE_ROOTFS}/Packages.$prj_name/.feedpriority
+wrl_installer_hardlinktree "$deploy_dir_rpm/"$arch 
"${IMAGE_ROOTFS}/Packages.$prj_name/."
+fi
+done
+createrepo_c --update -q ${IMAGE_ROOTFS}/Packages.$prj_name/
+fi
+}
+
+# Update .buildstamp and copy rpm packages to IMAGE_ROOTFS
+wrl_installer_copy_pkgs() {
+
+target_build="$1"
+target_image="$2"
+prj_name="$3"
+if [ -n "$4" ]; then
+installer_conf="$4"
+else
+installer_conf=""
+fi
+
+common_grep="-e '^ALL_MULTILIB_PACKAGE_ARCHS=.*' \
+-e '^MULTILIB_VARIANTS=.*' -e '^PACKAGE_ARCHS=.*'\
+-e '^PACKAGE_ARCH=.*' -e '^PACKAGE_INSTALL_ATTEMPTONLY=.*' \
+-e '^DISTRO=.*' -e '^DISTRO_NAME=.*' -e '^DISTRO_VERSION=.*' \
+"
+
+if [ -f "$installer_conf" ]; then
+eval "grep -e \"^PACKAGE_INSTALL=.*\" $common_grep $installer_conf \
+| sed -e 's/=/=\"/' -e 's/$/\"/' > ${BB_LOGFILE}.distro_vals"
+
+eval "cat $target_build/installersupport_$target_image | \
+grep -e 'DEPLOY_DIR_RPM=.*' >> ${BB_LOGFILE}.distro_vals"
+
+eval `cat ${BB_LOGFILE}.distro_vals`
+if [ $? -ne 0 ]; then
+bbfatal "Something is wrong in $installer_conf, please correct it"
+fi
+if [ -z "$PACKAGE_ARCHS" -o -z "$PACKAGE_INSTALL" ]; then
+bbfatal "PACKAGE_ARCHS or PACKAGE_INSTALL is null, please check 
$installer_conf"
+fi
+else
+eval "cat $target_build/installersupport_$target_image | \
+grep $common_grep -e '^PN=.*' -e '^SUMMARY=.*' -e 
'DEPLOY_DIR_RPM=.*'\
+   

[oe] [PATCH 03/15] meta-installer: add anaconda support for target build

2017-11-23 Thread Hongxu Jia
While "anaconda-support" in DISTRO_FEATURES, it enable
features of target build.

The target build requires:
- packages to help installation

- append anaconda_support_kernel to KERNEL_CLASSES which
  add dmthin.scc and crypt.scc to kernel config

- manually install grub/grub-efi for image install to workaround
  grub/grub-efi confliction

- add distro feature check of systemd and ldconfig

- add init manager checking

- add rpm packages check

- emit target image env to help installation

Signed-off-by: Hongxu Jia 
---
 .../classes/anaconda_support_image.bbclass | 40 ++
 meta-installer/conf/layer.conf |  2 ++
 .../packagegroups/packagegroup-anaconda-support.bb | 26 ++
 3 files changed, 68 insertions(+)
 create mode 100644 meta-installer/classes/anaconda_support_image.bbclass
 create mode 100644 
meta-installer/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb

diff --git a/meta-installer/classes/anaconda_support_image.bbclass 
b/meta-installer/classes/anaconda_support_image.bbclass
new file mode 100644
index 000..d11e85b
--- /dev/null
+++ b/meta-installer/classes/anaconda_support_image.bbclass
@@ -0,0 +1,40 @@
+FEATURE_PACKAGES_anaconda-support = "packagegroup-anaconda-support"
+IMAGE_FEATURES_append = " anaconda-support"
+
+# Generate filesystem images for image copy install
+IMAGE_FSTYPES += "ext4"
+
+ROOTFS_POSTPROCESS_COMMAND_append = " copy_grub_lib;"
+IMAGE_POSTPROCESS_COMMAND_append = " emit_image_env;"
+
+inherit distro_features_check
+REQUIRED_DISTRO_FEATURES = "systemd ldconfig"
+
+DEPENDS += "grub grub-efi"
+
+copy_grub_lib() {
+if [ -d ${STAGING_DIR_HOST}${libdir}/grub ]; then
+echo "Copy grub & grub-efi lib"
+mkdir -p ${IMAGE_ROOTFS}${libdir}/grub
+cp -rf ${STAGING_DIR_HOST}${libdir}/grub/* 
${IMAGE_ROOTFS}${libdir}/grub
+fi
+}
+
+python emit_image_env () {
+localdata = bb.data.createCopy(d)
+
+# Export DISTRO for installer build
+localdata.setVarFlag("DISTRO", "unexport", "")
+
+dumpfile = d.expand("${TOPDIR}/installersupport_${PN}")
+with open(dumpfile , "w") as f:
+bb.data.emit_env(f, localdata, True)
+}
+
+python __anonymous () {
+if not bb.utils.contains("PACKAGE_CLASSES", "package_rpm", True, False, d):
+raise bb.parse.SkipPackage('Target build requires RPM packages to be 
the default in PACKAGE_CLASSES.')
+
+if d.getVar("VIRTUAL-RUNTIME_init_manager", True) != "systemd":
+raise bb.parse.SkipPackage('Target build requires systemd, set 
VIRTUAL-RUNTIME_init_manager = "systemd" in local.conf')
+}
diff --git a/meta-installer/conf/layer.conf b/meta-installer/conf/layer.conf
index 2788d1c..95b5004 100644
--- a/meta-installer/conf/layer.conf
+++ b/meta-installer/conf/layer.conf
@@ -27,3 +27,5 @@ SRC_DISTRIBUTE_LICENSES += "FLTK"
 
 LAYER_PATH_meta-installer = "${LAYERDIR}"
 
+KERNEL_CLASSES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 
'anaconda-support', 'anaconda_support_kernel', '', d)}"
+IMAGE_CLASSES_append = " ${@bb.utils.contains('DISTRO_FEATURES', 
'anaconda-support', 'anaconda_support_image', '', d)}"
diff --git 
a/meta-installer/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb
 
b/meta-installer/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb
new file mode 100644
index 000..0617d90
--- /dev/null
+++ 
b/meta-installer/recipes-installersupport/packagegroups/packagegroup-anaconda-support.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "Packages required by target build to help the installation"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+
+inherit packagegroup
+
+RDEPENDS_${PN} = " \
+sudo \
+kernel-image \
+grubby \
+shadow \
+efibootmgr \
+kmod \
+lvm2 \
+util-linux-mount \
+init-ifupdown \
+libuser \
+dracut \
+cryptsetup \
+sed \
+grep \
+dosfstools \
+e2fsprogs \
+btrfs-tools \
+"
+
-- 
2.8.1

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


[oe] [PATCH 01/15] meta-installer: create layer

2017-11-23 Thread Hongxu Jia
Create meta-installer as a collection of installation
programs based on OE platform.

The target installer 'anaconda' has been maintained by
Wind River for several years, and now we want to contribute
it to OE community.

There are two images in target installer, one is target
image which to be installed to target, another is installer
image which to do the installation. Each image requires a
standalone build.

For target build, enable it by DISTRO_FEATURES_append = "
anaconda-support";

For host build, enable it by DISTRO = "anaconda"

Without above setting, the anaconda installer does not work even
though including meta-installer, and the other installer programs
in this layer will not be influenced by anaconda.

Signed-off-by: Hongxu Jia 
---
 meta-installer/COPYING.MIT |  17 ++
 meta-installer/README  |  47 
 meta-installer/README.anaconda | 341 ++
 meta-installer/conf/layer.conf |  29 +++
 meta-installer/licenses/FLTK   | 530 +
 5 files changed, 964 insertions(+)
 create mode 100644 meta-installer/COPYING.MIT
 create mode 100644 meta-installer/README
 create mode 100644 meta-installer/README.anaconda
 create mode 100644 meta-installer/conf/layer.conf
 create mode 100644 meta-installer/licenses/FLTK

diff --git a/meta-installer/COPYING.MIT b/meta-installer/COPYING.MIT
new file mode 100644
index 000..89de354
--- /dev/null
+++ b/meta-installer/COPYING.MIT
@@ -0,0 +1,17 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/meta-installer/README b/meta-installer/README
new file mode 100644
index 000..9b2f5d0
--- /dev/null
+++ b/meta-installer/README
@@ -0,0 +1,47 @@
+meat-installer
+
+This layer provides a collection of installation programs
+based on OE platform.
+
+One implementation is the target installer 'anaconda', see
+README.anaconda for details
+
+Dependencies
+
+URI: git://github.com/openembedded/openembedded-core.git
+branch: master
+revision: HEAD
+
+URI: git://github.com/openembedded/bitbake.git
+branch: master
+revision: HEAD
+
+URI: git://github.com/openembedded/meta-openembedded.git
+layers: meta-filesystems, meta-gnome, meta-python,
+meta-oe, meta-networking, and meta-initramfs
+branch: master
+revision: HEAD
+
+Maintenance
+---
+anaconda: See README.anaconda for details
+
+Contributing
+---
+The meta-openembedded mailinglist
+(openembedded-devel@lists.openembedded.org) is used for questions,
+comments and patch review. It is subscriber only, so please register
+before posting.
+
+Send pull requests to openembedded-devel@lists.openembedded.org with
+'[meta-installer]' in the subject.
+
+When sending single patches, please use something like:
+'git send-email -M -1 --to=openembedded-devel@lists.openembedded.org 
--subject-prefix=meta-installer][PATCH'
+
+License
+---
+
+All metadata is MIT licensed unless otherwise stated. Source code included
+in tree for individual recipes is under the LICENSE stated in each recipe
+(.bb file) unless otherwise stated.
diff --git a/meta-installer/README.anaconda b/meta-installer/README.anaconda
new file mode 100644
index 000..22f24d3
--- /dev/null
+++ b/meta-installer/README.anaconda
@@ -0,0 +1,341 @@
+Introduction
+---
+The anaconda is from fedora, which is the installer of
+distribution Fedora, RedHat and Centos.
+(https://fedoraproject.org/wiki/Anaconda)
+
+There are two builds required, one is target build,
+another is host build.
+
+The image/packages of target build is installed on the
+target hard disk as user requirements.
+
+The image of host build is to run a installer program (anaconda)
+and install image/packages of target build to hard disk.
+
+Maintenance
+---
+Maintainers: Hongxu Jia  | 
+ Robert Yang 
+ Mark Hatle 
+
+Limitation
+---
+1) Since 

[oe] [PATCH 00/15] create meta-installer layer

2017-11-23 Thread Hongxu Jia
The meta-installer layer provides a collection of installation
programs based on OE platform.

One implementation is the target installer 'anaconda', the version
is 26.21.11 which is based on Fedora 26.

The anacoda requires:
- systemd as init manager
- python3
- dnf2/rpm4
- gobject-introspection which requires qemu-usermode
  in MACHINE_FEATURES

The anaconda provides:
- graphic install and text install.

- package based (dnf/rpm) install and image (copy)
  based install.

- package based (dnf/rpm) install from local and
  remote rpm sources such as CDs and DVDs, images
  stored on a hard drive, NFS, HTTP, and FTP.

- kickstart install which provides a fully unattended
  installation that can be duplicated on scores of machines.

- install over VNC on headless machines.

- timezone setting.

- root password setting.

- user account creation.

- a variety of advanced storage devices including
  LVM, Btrfs, Ext4, and filesystem encryption. 

TODO (currently not support):
- keyboard setting

- language support setting

- network & host name setting

//Hongxu

The following changes since commit 34aa4c3202b427f59f843dc43a4e1afda4f81d13:

  usb-modeswitch: add usb-modeswitch@.service (2017-11-19 13:45:38 -0800)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib hongxu/meta-installer
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=hongxu/meta-installer

Hongxu Jia (15):
  meta-installer: create layer
  meta-installer: add kernel config
  meta-installer: add anaconda support for target build
  meta-installer: add distro anaconda for host build
  meta-installer: add systemd/systemd-serialgetty bbappend
  meta-installer: add gtk+3 bbappend
  meta-installer: add initramfs-live-boot bbappend
  meta-installer: add xserver-xf86-config bbappend
  meta-installer: add multipath-tools bbappend
  meta-installer: add recipe packagegroup-installer-x11-anaconda
  meta-installer: add recipe yocto-compat-logos
  meta-installer: add recipe anaconda-init
  meta-installer: add recipe anaconda 26.21.11
  meta-installer: add recipe core-image-anaconda
  meta-installer: add recipe core-image-anaconda-initramfs

 meta-installer/COPYING.MIT |  17 +
 meta-installer/README  |  47 ++
 meta-installer/README.anaconda | 341 
 meta-installer/classes/anaconda_image.bbclass  | 321 +++
 meta-installer/classes/anaconda_kernel.bbclass |  14 +
 .../classes/anaconda_support_image.bbclass |  40 ++
 .../classes/anaconda_support_kernel.bbclass|   8 +
 meta-installer/conf/distro/anaconda.conf   |  33 ++
 meta-installer/conf/layer.conf |  31 ++
 meta-installer/licenses/FLTK   | 530 ++
 .../systemd/files/serial-getty@.service|  40 ++
 .../systemd/files/serial-screen-anaconda.sh|   5 +
 .../systemd/systemd-serialgetty.bbappend   |  12 +
 .../recipes-core/systemd/systemd_%.bbappend|   6 +
 ...for-anaconda-installer-while-loading-libA.patch |  84 +++
 .../recipes-gnome/gtk+/gtk+3_%.%.%.bbappend|   3 +
 .../xorg-xserver/xserver-xf86-config_0.1.bbappend  |  12 +
 .../anaconda-init/anaconda-init.bb |  77 +++
 .../anaconda-init/anaconda-init/COPYING| 339 
 .../anaconda-init/anaconda-init/Xusername  |   1 +
 .../anaconda-init/anaconda-init/anaconda-init  | 362 +
 .../anaconda-init/anaconda-init-screen@.service|  22 +
 .../anaconda-init/anaconda-init.service|  13 +
 .../anaconda-init/anaconda-init.target |   6 +
 .../anaconda/files/0001-do-not-support-po.patch|  41 ++
 ...02-widgets-Makefile.am-do-not-compile-doc.patch |  28 +
 ...t-Use-system-Python-when-running-Anaconda.patch |  42 ++
 ...4-pyanaconda-flags.py-drop-selinux-module.patch |  48 ++
 ...ckage-site-dir-for-installclass-searching.patch |  38 ++
 ...06-do-not-load-the-system-wide-Xresources.patch |  53 ++
 .../0007-tweak-iso-mount-dir-and-kernel-name.patch |  95 
 .../0008-dnfpayload.py-customize-for-WRLinux.patch | 597 +
 ...cessary-noverifyssl-for-http-ftp-protocol.patch |  32 ++
 .../0010-dynamic-detect-workable-locale.patch  |  77 +++
 .../files/0011-improve-thread-monitor.patch|  55 ++
 .../anaconda/files/0012-disable-audit.patch|  64 +++
 ...py-Change-grub2-settings-to-match-oe-core.patch | 137 +
 .../files/0014-tweak-detect-kernel-version.patch   |  96 
 .../0015-tweak-grub-config-file-for-WRLinux.patch  |  28 +
 ...time.tzset-to-apply-timezone-changes-when.patch |  66 +++
 ...rt-Authconfig-Firewall-Firstboot-Timezone.patch | 216 
 .../files/0018-invisible-help-button.patch |  32 ++
 .../0019-disable-non-implemented-functions.patch   |  41 ++
 .../files/0020-disable-geoloc-by-default.patch |  30 ++
 .../anaconda/files/0021-support-UEFI-boot.patch

Re: [oe] [PATCH] neon: add the recipe from oe-core

2017-11-23 Thread Martin Jansa
https://www.openembedded.org/wiki/Styleguide#Format_Guidelines

On Thu, Nov 23, 2017 at 10:46 AM, Alexander Kanavin <
alexander.kana...@linux.intel.com> wrote:

> On 11/22/2017 07:47 PM, Martin Jansa wrote:
>
>> +do_compile_append() {
>>> +   oe_runmake -C test
>>>
>>
>> Use 4 spaces for indentation instead of tabs.
>>
>
> Please explain why.
>
> Alex
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-browser] CFT: Chromium 62 in meta-browser

2017-11-23 Thread Ayoub Zaki
Hello all,

I'm trying to build from the latest commit meta-browser:
a8bb1e779bc3565beacceadc4414816670f33475 with an imx6 using yocto pyro
branch with meta-freescale, however the build fails :

 [460/30779] touch obj/chrome/browser/search/local_ntp_code_generate.stamp
| [461/30779] touch obj/chrome/browser/search/generated.stamp
| [462/30779] python
../../mojo/public/tools/bindings/generate_type_mappings.py --output
gen/chrome/browser/ui/webui/omnibox/mojo_bindings__type_mappings
| [463/30779] touch
obj/chrome/browser/ui/webui/omnibox/mojo_bindings__type_mappings.stamp
| [464/30779] touch obj/chrome/browser/chrome_internal_resources_gen.stamp
| [465/30779] touch obj/chrome/browser/theme_properties.stamp
| [466/30779] python ../../chrome/browser/resources/vulcanize_gn.py --host
bookmarks --input ../../chrome/browser/resources/md_bookmarks --out_folder
gen/chrome/browser/resources/md_bookmarks --depfile
gen/chrome/browser/resources/md_bookmarks/build.d --html_in_files
bookmarks.html --html_out_files vulcanized.html --js_out_files crisper.js
| FAILED: gen/chrome/browser/resources/md_bookmarks/vulcanized.html
gen/chrome/browser/resources/md_bookmarks/crisper.js
| python ../../chrome/browser/resources/vulcanize_gn.py --host bookmarks
--input ../../chrome/browser/resources/md_bookmarks --out_folder
gen/chrome/browser/resources/md_bookmarks --depfile
gen/chrome/browser/resources/md_bookmarks/build.d --html_in_files
bookmarks.html --html_out_files vulcanized.html --js_out_files crisper.js
| ../../third_party/node/linux/node-linux-x64/bin/node
../../third_party/node/node_modules/polymer-bundler/lib/bin/polymer-bundler
--exclude chrome://resources/html/polymer.html --exclude
chrome://resources/polymer/v1_0/polymer/polymer.html --exclude
chrome://resources/polymer/v1_0/polymer/polymer-micro.html --exclude
chrome://resources/polymer/v1_0/polymer/polymer-mini.html --exclude
chrome://resources/polymer/v1_0/web-animations-js/web-animations-next-lite.min.js
--exclude chrome://resources/css/roboto.css --exclude
chrome://resources/css/text_defaults.css --exclude
chrome://resources/css/text_defaults_md.css --exclude
chrome://resources/js/load_time_data.js --inline-css --inline-scripts
--rewrite-urls-in-templates --strip-comments --redirect
"chrome://resources/cr_components/|../../ui/webui/resources/cr_components"
--redirect
"chrome://resources/cr_elements/|../../ui/webui/resources/cr_elements"
--redirect "chrome://resources/css/|../../ui/webui/resources/css"
--redirect "chrome://resources/html/|../../ui/webui/resources/html"
--redirect "chrome://resources/js/|../../ui/webui/resources/js" --redirect
"chrome://resources/polymer/v1_0/|../../third_party/polymer/v1_0/components-chromium"
--exclude strings.js --exclude chrome://bookmarks/strings.js --manifest-out
/opt/yocto/pyro/build/tmp/work/armv7ahf-neon-imx-beld-linux-gnueabi/chromium/62.0.3202.94-r0/chromium-62.0.3202.94/out/Release/gen/chrome/browser/resources/md_bookmarks/bookmarks_requestlist.txt
--root
/opt/yocto/pyro/build/tmp/work/armv7ahf-neon-imx-beld-linux-gnueabi/chromium/62.0.3202.94-r0/chromium-62.0.3202.94/chrome/browser/resources/md_bookmarks
--redirect
"chrome://bookmarks/|/opt/yocto/pyro/build/tmp/work/armv7ahf-neon-imx-beld-linux-gnueabi/chromium/62.0.3202.94-r0/chromium-62.0.3202.94/chrome/browser/resources/md_bookmarks"
--out-dir gen/chrome/browser/resources/md_bookmarks/bundled --shell
bookmarks.html --in-html bookmarks.html failed:
/opt/yocto/pyro/build/tmp/work/armv7ahf-neon-imx-beld-linux-gnueabi/chromium/62.0.3202.94-r0/chromium-62.0.3202.94/third_party/node/node_modules/polymer-bundler/lib/bin/polymer-bundler.js:178
| const [prefix, path] = redirect.split('|');
|   ^
|
| SyntaxError: Unexpected token [
| at exports.runInThisContext (vm.js:53:16)
| at Module._compile (module.js:373:25)
| at Object.Module._extensions..js (module.js:416:10)
| at Module.load (module.js:343:32)
| at Function.Module._load (module.js:300:12)
| at Function.Module.runMain (module.js:441:10)
| at startup (node.js:140:18)
| at node.js:1043:3
|
| Traceback (most recent call last):
|   File "../../chrome/browser/resources/vulcanize_gn.py", line 252, in

| main(sys.argv[1:])
|   File "../../chrome/browser/resources/vulcanize_gn.py", line 235, in main
| manifest_out_path = _vulcanize(args.input, args)
|   File "../../chrome/browser/resources/vulcanize_gn.py", line 159, in
_vulcanize
| ] + in_html_args)
|   File "../../third_party/node/node.py", line 28, in RunNode
| raise
| TypeError: exceptions must be old-style classes or derived from
BaseException, not NoneType
| [467/30779] python ../../chrome/browser/resources/vulcanize_gn.py --host
downloads --input ../../chrome/browser/resources/md_downloads --out_folder
gen/chrome/browser/resources/md_downloads --depfile
gen/chrome/browser/resources/md_downloads/build.d --html_in_files
downloads.html --html_out_files vulcanized.html --js_out_files crisper.js

Re: [oe] [PATCH] neon: add the recipe from oe-core

2017-11-23 Thread Alexander Kanavin

On 11/22/2017 07:47 PM, Martin Jansa wrote:

+do_compile_append() {
+   oe_runmake -C test


Use 4 spaces for indentation instead of tabs.


Please explain why.

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