[yocto] customising a bsp
Hi, What is the best alternative to setting variables in local.conf? The specific use-case is customising a meta-raspberrypi build, which has a bunch of variables that are picked up by the MACHINE code to influence build configurations. I want to version these customisations hence removing them from local.conf. I have tried adding a machine definition in a separate layer that includes the same files as those from the machines in meta-raspberry pi but there is logic that depends on the machine name and building an image fails. Many thanks, Serj. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-security][PATCH] clamav: drop llvm version setting
There is only one llvm and its in core so drop allowing it to be overwritten. We can hardcode it now. Signed-off-by: Armin Kuster --- recipes-security/clamav/clamav_0.99.4.bb | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/recipes-security/clamav/clamav_0.99.4.bb b/recipes-security/clamav/clamav_0.99.4.bb index 1d09ba6..6219d9e 100644 --- a/recipes-security/clamav/clamav_0.99.4.bb +++ b/recipes-security/clamav/clamav_0.99.4.bb @@ -31,17 +31,13 @@ GID = "clamav" # Clamav has a built llvm version 2 but does not build with gcc 6.x, # disable the internal one. This is a known issue -# If you want LLVM support, use meta-oe llvm3.3 to build for GCC 6.X, -# as defined below +# If you want LLVM support, use the one in core -CLAMAV_LLVM ?= "oellvm" -CLAMAV_LLVM_RELEASE ?= "8.0" - -PACKAGECONFIG ?= "ncurses openssl bz2 zlib ${CLAMAV_LLVM}" +PACKAGECONFIG ?= "ncurses openssl bz2 zlib llvm" PACKAGECONFIG += " ${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", "", d)}" PACKAGECONFIG += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" -PACKAGECONFIG[oellvm] = "--with-system-llvm --with-llvm-linking=dynamic --disable-llvm, ,llvm${CLAMAV_LLVM_RELEASE}" +PACKAGECONFIG[llvm] = "--with-system-llvm --with-llvm-linking=dynamic --disable-llvm, ,llvm8.0" PACKAGECONFIG[pcre] = "--with-pcre=${STAGING_LIBDIR}, --without-pcre, libpcre" PACKAGECONFIG[xml] = "--with-xml=${STAGING_LIBDIR}/.., --with-xml=no, libxml2," -- 2.17.1 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-security][PATCH] clamav: add basic runtime tests
Signed-off-by: Armin Kuster --- lib/oeqa/runtime/cases/clamav.py | 38 1 file changed, 38 insertions(+) create mode 100644 lib/oeqa/runtime/cases/clamav.py diff --git a/lib/oeqa/runtime/cases/clamav.py b/lib/oeqa/runtime/cases/clamav.py new file mode 100644 index 000..fc77330 --- /dev/null +++ b/lib/oeqa/runtime/cases/clamav.py @@ -0,0 +1,38 @@ +# Copyright (C) 2019 Armin Kuster +# +import re + +from oeqa.runtime.case import OERuntimeTestCase +from oeqa.core.decorator.depends import OETestDepends +from oeqa.runtime.decorator.package import OEHasPackage + + +class ClamavTest(OERuntimeTestCase): + +@OEHasPackage(['clamav']) +@OETestDepends(['ssh.SSHTest.test_ssh']) +def test_freshclam_help(self): +status, output = self.target.run('freshclam --help ') +msg = ('freshclam --hlep command does not work as expected. ', + 'Status and output:%s and %s' % (status, output)) +self.assertEqual(status, 0, msg = msg) + +@OETestDepends(['clamav.ClamavTest.test_freshclam_help']) +def test_freshclam_download(self): +status, output = self.target.run('freshclam --show-progress') +match = re.search('Database updated', output) +#match = re.search('main.cvd is up to date', output) +if not match: +msg = ('freshclam : DB dowbload failed. ' + 'Status and output:%s and %s' % (status, output)) +self.assertEqual(status, 1, msg = msg) + +@OETestDepends(['clamav.ClamavTest.test_freshclam_download']) +def test_freshclam_check_mirrors(self): +status, output = self.target.run('freshclam --list-mirrors') +match = re.search('Failures: 0', output) +if not match: +msg = ('freshclam --list-mirrors: failed. ' + 'Status and output:%s and %s' % (status, output)) +self.assertEqual(status, 1, msg = msg) + -- 2.17.1 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-security][PATCH 1/2] reorg: move mac recipes to recipes-mac
Signed-off-by: Armin Kuster --- {recipes-security => recipes-mac}/AppArmor/apparmor_2.12.bb | 0 {recipes-security => recipes-mac}/AppArmor/files/apparmor | 0 {recipes-security => recipes-mac}/AppArmor/files/apparmor.rc | 0 {recipes-security => recipes-mac}/AppArmor/files/apparmor.service | 0 .../AppArmor/files/crosscompile_perl_bindings.patch | 0 .../AppArmor/files/disable_pdf.patch | 0 .../AppArmor/files/disable_perl_h_check.patch | 0 {recipes-security => recipes-mac}/AppArmor/files/functions| 0 {recipes-security => recipes-mac}/AppArmor/files/run-ptest| 0 {recipes-security => recipes-mac}/AppArmor/files/tool-paths.patch | 0 {recipes-security => recipes-mac}/smack/files/run-ptest | 0 .../smack/files/smack_generator_make_fixup.patch | 0 {recipes-security => recipes-mac}/smack/smack_1.3.1.bb| 0 13 files changed, 0 insertions(+), 0 deletions(-) rename {recipes-security => recipes-mac}/AppArmor/apparmor_2.12.bb (100%) rename {recipes-security => recipes-mac}/AppArmor/files/apparmor (100%) rename {recipes-security => recipes-mac}/AppArmor/files/apparmor.rc (100%) rename {recipes-security => recipes-mac}/AppArmor/files/apparmor.service (100%) rename {recipes-security => recipes-mac}/AppArmor/files/crosscompile_perl_bindings.patch (100%) rename {recipes-security => recipes-mac}/AppArmor/files/disable_pdf.patch (100%) rename {recipes-security => recipes-mac}/AppArmor/files/disable_perl_h_check.patch (100%) rename {recipes-security => recipes-mac}/AppArmor/files/functions (100%) rename {recipes-security => recipes-mac}/AppArmor/files/run-ptest (100%) rename {recipes-security => recipes-mac}/AppArmor/files/tool-paths.patch (100%) rename {recipes-security => recipes-mac}/smack/files/run-ptest (100%) rename {recipes-security => recipes-mac}/smack/files/smack_generator_make_fixup.patch (100%) rename {recipes-security => recipes-mac}/smack/smack_1.3.1.bb (100%) diff --git a/recipes-security/AppArmor/apparmor_2.12.bb b/recipes-mac/AppArmor/apparmor_2.12.bb similarity index 100% rename from recipes-security/AppArmor/apparmor_2.12.bb rename to recipes-mac/AppArmor/apparmor_2.12.bb diff --git a/recipes-security/AppArmor/files/apparmor b/recipes-mac/AppArmor/files/apparmor similarity index 100% rename from recipes-security/AppArmor/files/apparmor rename to recipes-mac/AppArmor/files/apparmor diff --git a/recipes-security/AppArmor/files/apparmor.rc b/recipes-mac/AppArmor/files/apparmor.rc similarity index 100% rename from recipes-security/AppArmor/files/apparmor.rc rename to recipes-mac/AppArmor/files/apparmor.rc diff --git a/recipes-security/AppArmor/files/apparmor.service b/recipes-mac/AppArmor/files/apparmor.service similarity index 100% rename from recipes-security/AppArmor/files/apparmor.service rename to recipes-mac/AppArmor/files/apparmor.service diff --git a/recipes-security/AppArmor/files/crosscompile_perl_bindings.patch b/recipes-mac/AppArmor/files/crosscompile_perl_bindings.patch similarity index 100% rename from recipes-security/AppArmor/files/crosscompile_perl_bindings.patch rename to recipes-mac/AppArmor/files/crosscompile_perl_bindings.patch diff --git a/recipes-security/AppArmor/files/disable_pdf.patch b/recipes-mac/AppArmor/files/disable_pdf.patch similarity index 100% rename from recipes-security/AppArmor/files/disable_pdf.patch rename to recipes-mac/AppArmor/files/disable_pdf.patch diff --git a/recipes-security/AppArmor/files/disable_perl_h_check.patch b/recipes-mac/AppArmor/files/disable_perl_h_check.patch similarity index 100% rename from recipes-security/AppArmor/files/disable_perl_h_check.patch rename to recipes-mac/AppArmor/files/disable_perl_h_check.patch diff --git a/recipes-security/AppArmor/files/functions b/recipes-mac/AppArmor/files/functions similarity index 100% rename from recipes-security/AppArmor/files/functions rename to recipes-mac/AppArmor/files/functions diff --git a/recipes-security/AppArmor/files/run-ptest b/recipes-mac/AppArmor/files/run-ptest similarity index 100% rename from recipes-security/AppArmor/files/run-ptest rename to recipes-mac/AppArmor/files/run-ptest diff --git a/recipes-security/AppArmor/files/tool-paths.patch b/recipes-mac/AppArmor/files/tool-paths.patch similarity index 100% rename from recipes-security/AppArmor/files/tool-paths.patch rename to recipes-mac/AppArmor/files/tool-paths.patch diff --git a/recipes-security/smack/files/run-ptest b/recipes-mac/smack/files/run-ptest similarity index 100% rename from recipes-security/smack/files/run-ptest rename to recipes-mac/smack/files/run-ptest diff --git a/recipes-security/smack/files/smack_generator_make_fixup.patch b/recipes-mac/smack/files/smack_generator_make_fixup.patch similarity index 100% rename from recipes-security/smack/files/smack_generator_make_fixup.patch rename to recipes-mac/smack/files/smack_generator_make_fixup.patch diff --g
[yocto] [meta-security][PATCH 2/2] reorg ids: move ids recipes to recipes-ids
Signed-off-by: Armin Kuster --- .../samhain/files/run-ptest | 0 ...in-add-LDFLAGS-variable-for-samhain_setpwd.patch | 0 ...amhain-avoid-searching-host-for-postgresql.patch | 0 .../samhain/files/samhain-client.default| 0 .../samhain/files/samhain-client.init | 0 .../files/samhain-configure-add-option-for-ps.patch | 0 .../samhain/files/samhain-cross-compile.patch | 0 .../samhain-mips64-aarch64-dnmalloc-hash-fix.patch | 0 .../files/samhain-not-run-ptest-on-host.patch | 0 .../samhain/files/samhain-pid-path.patch| 0 .../samhain-samhainrc-fix-files-dirs-path.patch | 0 .../samhain/files/samhain-samhainrc.patch | 0 .../samhain/files/samhain-server-volatiles | 0 .../samhain/files/samhain-server.default| 0 .../samhain/files/samhain-server.init | 0 .../samhain/files/samhain-sha256-big-endian.patch | 0 .../samhain/files/samhain-standalone.default| 0 .../samhain/files/samhain-standalone.init | 0 .../samhain/files/samhain.service | 0 .../samhain/samhain-client_4.3.2.bb | 0 .../samhain/samhain-server_4.3.2.bb | 0 .../samhain/samhain-standalone_4.3.2.bb | 0 .../samhain/samhain.inc | 0 .../suricata/files/emerging.rules.tar.gz| Bin .../suricata/files/no_libhtp_build.patch| 0 .../suricata/files/run-ptest| 0 .../suricata/files/suricata.service | 0 .../suricata/files/suricata.yaml| 0 .../suricata/files/volatiles.03_suricata| 0 .../suricata/libhtp_0.5.29.bb | 0 .../suricata/suricata.inc | 0 .../suricata/suricata_4.1.3.bb | 0 .../tripwire/files/add_armeb_arch.patch | 0 .../tripwire/files/run-ptest| 0 .../tripwire/files/tripwire.cron| 0 .../tripwire/files/tripwire.sh | 0 .../tripwire/files/tripwire.txt | 0 .../tripwire/files/twcfg.txt| 0 .../tripwire/files/twinstall.sh | 0 .../tripwire/files/twpol-yocto.txt | 0 .../tripwire/tripwire_2.4.3.7.bb| 0 41 files changed, 0 insertions(+), 0 deletions(-) rename {recipes-security => recipes-ids}/samhain/files/run-ptest (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-add-LDFLAGS-variable-for-samhain_setpwd.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-avoid-searching-host-for-postgresql.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-client.default (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-client.init (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-configure-add-option-for-ps.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-cross-compile.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-mips64-aarch64-dnmalloc-hash-fix.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-not-run-ptest-on-host.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-pid-path.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-samhainrc-fix-files-dirs-path.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-samhainrc.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-server-volatiles (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-server.default (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-server.init (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-sha256-big-endian.patch (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-standalone.default (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain-standalone.init (100%) rename {recipes-security => recipes-ids}/samhain/files/samhain.service (100%) rename {recipes-security => recipes-ids}/samhain/samhain-client_4.3.2.bb (100%) rename {recipes-security => recipes-ids}/samhain/samhain-server_4.3.2.bb (100%) rename {recipes-security => recipes-ids}/samhain/samhain-standalone_4.3.2.bb (100%) rename {recipes-security => recipes-ids}/samhain/samhain.inc (100%) rename {recipes-security => recipes-ids}/suricata/files/emerging.rules.tar.gz (100%) rename {recipes-security => recipes-ids}/suricata/files/no_libhtp_build.patch (100%) rename {recipes-security => recipes-ids}/suricata/files/run-ptest (100%) rename {recipes-security => recipes-ids}/suricata/files/suricata.service (100%) rename {recipes-security => recipes-ids}/suricata/files/suricata.
[yocto] Yocto on OnBoard Intel Galileo Flash
Greetings All, What is the best way to put a image on the 8mb of Yocto onboard flash or is this not possible with the Yocto Project. Nick -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto