Re: [yocto] [meta-mingw] [PATCH] grpc: use the new PACKAGECONFIG to disable shared

2021-08-27 Thread Sinan Kaya
On 8/27/2021 8:41 AM, Joshua Watt wrote:

>> @@ -1,5 +1,4 @@
>>   # doesn't build and not required
>>   DEPENDS:remove:mingw32 = "libnsl2"

> 
> This is good, thanks. Is the libnsl2 also tied to some feature? Perhaps
> you can explain why it needs to be removed from MinGW
> 

My research says libnsl is a soft requirement for c-ares.
GRPC assumes libnsl to be present and used by default.
However, it will build without it too.

https://www.linuxfromscratch.org/blfs/view/svn/basicnet/libnsl.html

We should be turning libnsl off if you want to enable GRPC's backward
compatibility mode. Maybe, because previous versions didn't support
libnsl.


c-ares
-
CMakeLists.txt:CARES_FUNCTION_IN_LIBRARY (gethostbyname nsl HAVE_LIBNSL)
CMakeLists.txt: LIST (APPEND CARES_DEPENDENT_LIBS nsl)


grpc
-
  if(gRPC_BACKWARDS_COMPATIBILITY_MODE)
# See https://github.com/grpc/grpc/issues/17255
set(HAVE_LIBNSL OFF CACHE BOOL "avoid cares dependency on libnsl")
  endif()

CMakeLists.txt:option(gRPC_BACKWARDS_COMPATIBILITY_MODE "Build libraries
that are binary compatible across a larger number of OS and libc
versions" OFF)
CMakeLists.txt:if(gRPC_BACKWARDS_COMPATIBILITY_MODE)


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



Re: [yocto] Extensible SDK - runtime packages installation

2021-08-27 Thread d0ku
Ok, I was able to find the answer to the third point:

> 
> 
> 
> Am I possibly missing some configuration steps? *In Yocto environment the
> PATH gets expanded with `bin/perl-native` automatically,* but I wasn't able
> to pinpoint what file/task actually does it.
> 
> 

The *bolded* sentence is not actually true. Adding *perl-native* to the 
*DEPENDS* of a recipe, does not cause it to be automatically picked up during 
the build. For this to happen the *perlnative* bbclass has to be inherited. 
Same design is in place for at least python, probably more packages.

This brings me to the followup question:
How can I mimic the *perlnative* or *python3native* behaviour on the eSDK 
level? Is this only possible via the *devtool* and recipes, and so can't be 
done "outside" of the Yocto environment, e.g. using ${CC} and ${CXX} variables?

Regards,
Jakub

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



[yocto] [meta-security][PATCH 6/6] harden-image-minimal: fix useradd inherit

2021-08-27 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../recipes-core/images/harden-image-minimal.bb   | 11 ++-
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/meta-hardening/recipes-core/images/harden-image-minimal.bb 
b/meta-hardening/recipes-core/images/harden-image-minimal.bb
index c35c257..38771cd 100644
--- a/meta-hardening/recipes-core/images/harden-image-minimal.bb
+++ b/meta-hardening/recipes-core/images/harden-image-minimal.bb
@@ -10,7 +10,8 @@ LICENSE = "MIT"
 
 IMAGE_ROOTFS_SIZE ?= "8192"
 
-inherit core-image extrausers
+inherit core-image
+IMAGE_CLASSES:append = " extrausers"
 
 ROOT_DEFAULT_PASSWORD ?= "1SimplePw!"
 DEFAULT_ADMIN_ACCOUNT ?= "myadmin"
@@ -19,7 +20,7 @@ DEFAULT_ADMIN_ACCOUNT_PASSWORD ?= "1SimplePw!"
 
 EXTRA_USERS_PARAMS = "${@bb.utils.contains('DISABLE_ROOT', 'True', "usermod -L 
root;", "usermod -P '${ROOT_DEFAULT_PASSWORD}' root;", d)}"
 
-EXTRA_USERS_PARAMS += "useradd  ${DEFAULT_ADMIN_ACCOUNT};" 
-EXTRA_USERS_PARAMS += "groupadd  ${DEFAULT_ADMIN_GROUP};" 
-EXTRA_USERS_PARAMS += "usermod -P '${DEFAULT_ADMIN_ACCOUNT_PASSWORD}' 
${DEFAULT_ADMIN_ACCOUNT};" 
-EXTRA_USERS_PARAMS += "usermod -aG ${DEFAULT_ADMIN_GROUP}  
${DEFAULT_ADMIN_ACCOUNT};" 
+EXTRA_USERS_PARAMS:append = " useradd  ${DEFAULT_ADMIN_ACCOUNT};" 
+EXTRA_USERS_PARAMS:append = " groupadd  ${DEFAULT_ADMIN_GROUP};" 
+EXTRA_USERS_PARAMS:append = " usermod -P '${DEFAULT_ADMIN_ACCOUNT_PASSWORD}' 
${DEFAULT_ADMIN_ACCOUNT};" 
+EXTRA_USERS_PARAMS:append = " usermod -aG ${DEFAULT_ADMIN_GROUP}  
${DEFAULT_ADMIN_ACCOUNT};" 
-- 
2.25.1


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



[yocto] [meta-security][PATCH 5/6] layer.conf: drop meta-rust

2021-08-27 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 meta-parsec/conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-parsec/conf/layer.conf b/meta-parsec/conf/layer.conf
index 86d41b2..2eeb71b 100644
--- a/meta-parsec/conf/layer.conf
+++ b/meta-parsec/conf/layer.conf
@@ -10,5 +10,5 @@ BBFILE_PRIORITY_parsec-layer = "5"
 
 LAYERSERIES_COMPAT_parsec-layer = "honister"
 
-LAYERDEPENDS_parsec-layer = "core rust-layer clang-layer tpm-layer"
+LAYERDEPENDS_parsec-layer = "core clang-layer tpm-layer"
 BBLAYERS_LAYERINDEX_NAME_parsec-layer = "meta-parsec"
-- 
2.25.1


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



[yocto] [meta-security][PATCH 4/6] layer.conf: drop dynamic-layer

2021-08-27 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 conf/layer.conf | 4 
 1 file changed, 4 deletions(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index cdcfaee..ad9da56 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -16,7 +16,3 @@ LAYERDEPENDS_security = "core openembedded-layer perl-layer 
networking-layer met
 # Sanity check for meta-security layer.
 # Setting SKIP_META_SECURITY_SANITY_CHECK to "1" would skip the bbappend files 
check.
 INHERIT += "sanity-meta-security"
-
-BBFILES_DYNAMIC += " \
-rust-layer:${LAYERDIR}/dynamic-layers/meta-rust/recipes-*/*/*.bb  \
-"
-- 
2.25.1


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



[yocto] [meta-security][PATCH 3/6] suricata: rust is in core

2021-08-27 Thread Armin Kuster
drop dynamic-layer

Signed-off-by: Armin Kuster 
---
 .../recipes-ids => recipes-ids}/suricata/files/fixup.patch| 0
 .../recipes-ids => recipes-ids}/suricata/files/run-ptest  | 0
 .../recipes-ids => recipes-ids}/suricata/files/suricata.service   | 0
 .../recipes-ids => recipes-ids}/suricata/files/suricata.yaml  | 0
 .../recipes-ids => recipes-ids}/suricata/files/tmpfiles.suricata  | 0
 .../suricata/files/volatiles.03_suricata  | 0
 .../recipes-ids => recipes-ids}/suricata/libhtp_0.5.38.bb | 0
 .../meta-rust/recipes-ids => recipes-ids}/suricata/suricata.inc   | 0
 .../recipes-ids => recipes-ids}/suricata/suricata_6.0.3.bb| 0
 9 files changed, 0 insertions(+), 0 deletions(-)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/files/fixup.patch (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/files/run-ptest (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/files/suricata.service (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/files/suricata.yaml (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/files/tmpfiles.suricata (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/files/volatiles.03_suricata (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/libhtp_0.5.38.bb (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/suricata.inc (100%)
 rename {dynamic-layers/meta-rust/recipes-ids => 
recipes-ids}/suricata/suricata_6.0.3.bb (100%)

diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/fixup.patch 
b/recipes-ids/suricata/files/fixup.patch
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/fixup.patch
rename to recipes-ids/suricata/files/fixup.patch
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/run-ptest 
b/recipes-ids/suricata/files/run-ptest
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/run-ptest
rename to recipes-ids/suricata/files/run-ptest
diff --git 
a/dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.service 
b/recipes-ids/suricata/files/suricata.service
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.service
rename to recipes-ids/suricata/files/suricata.service
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.yaml 
b/recipes-ids/suricata/files/suricata.yaml
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.yaml
rename to recipes-ids/suricata/files/suricata.yaml
diff --git 
a/dynamic-layers/meta-rust/recipes-ids/suricata/files/tmpfiles.suricata 
b/recipes-ids/suricata/files/tmpfiles.suricata
similarity index 100%
rename from 
dynamic-layers/meta-rust/recipes-ids/suricata/files/tmpfiles.suricata
rename to recipes-ids/suricata/files/tmpfiles.suricata
diff --git 
a/dynamic-layers/meta-rust/recipes-ids/suricata/files/volatiles.03_suricata 
b/recipes-ids/suricata/files/volatiles.03_suricata
similarity index 100%
rename from 
dynamic-layers/meta-rust/recipes-ids/suricata/files/volatiles.03_suricata
rename to recipes-ids/suricata/files/volatiles.03_suricata
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/libhtp_0.5.38.bb 
b/recipes-ids/suricata/libhtp_0.5.38.bb
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/libhtp_0.5.38.bb
rename to recipes-ids/suricata/libhtp_0.5.38.bb
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/suricata.inc 
b/recipes-ids/suricata/suricata.inc
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/suricata.inc
rename to recipes-ids/suricata/suricata.inc
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/suricata_6.0.3.bb 
b/recipes-ids/suricata/suricata_6.0.3.bb
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/suricata_6.0.3.bb
rename to recipes-ids/suricata/suricata_6.0.3.bb
-- 
2.25.1


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



[yocto] [meta-security][PATCH 1/6] dm-verity-img.bbclass: more overided fixups

2021-08-27 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 classes/dm-verity-img.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass
index 16d395b..a0950da 100644
--- a/classes/dm-verity-img.bbclass
+++ b/classes/dm-verity-img.bbclass
@@ -63,8 +63,8 @@ verity_setup() {
 VERITY_TYPES = "ext2.verity ext3.verity ext4.verity btrfs.verity"
 IMAGE_TYPES += "${VERITY_TYPES}"
 CONVERSIONTYPES += "verity"
-CONVERSION_CMD_verity = "verity_setup ${type}"
-CONVERSION_DEPENDS_verity = "cryptsetup-native"
+CONVERSION_CMD:verity = "verity_setup ${type}"
+CONVERSION_DEPENDS:verity = "cryptsetup-native"
 
 python __anonymous() {
 verity_image = d.getVar('DM_VERITY_IMAGE')
-- 
2.25.1


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



[yocto] [meta-security][PATCH 2/6] krill: Rust is in core now

2021-08-27 Thread Armin Kuster
drop dynamic-layer

Signed-off-by: Armin Kuster 
---
 .../krill/files/panic_workaround.patch| 0
 .../recipes-security => recipes-security}/krill/krill.inc | 0
 .../recipes-security => recipes-security}/krill/krill_0.9.1.bb| 0
 3 files changed, 0 insertions(+), 0 deletions(-)
 rename {dynamic-layers/meta-rust/recipes-security => 
recipes-security}/krill/files/panic_workaround.patch (100%)
 rename {dynamic-layers/meta-rust/recipes-security => 
recipes-security}/krill/krill.inc (100%)
 rename {dynamic-layers/meta-rust/recipes-security => 
recipes-security}/krill/krill_0.9.1.bb (100%)

diff --git 
a/dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch 
b/recipes-security/krill/files/panic_workaround.patch
similarity index 100%
rename from 
dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch
rename to recipes-security/krill/files/panic_workaround.patch
diff --git a/dynamic-layers/meta-rust/recipes-security/krill/krill.inc 
b/recipes-security/krill/krill.inc
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-security/krill/krill.inc
rename to recipes-security/krill/krill.inc
diff --git a/dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb 
b/recipes-security/krill/krill_0.9.1.bb
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb
rename to recipes-security/krill/krill_0.9.1.bb
-- 
2.25.1


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



Re: [yocto] [meta-mingw] [PATCH] grpc: use the new PACKAGECONFIG to disable shared

2021-08-27 Thread Joshua Watt


On 8/24/21 11:48 AM, Sinan Kaya wrote:

There is a new PACKAGECONFIG for grpc to allows us
to selectively enable/disable shared builds.

Signed-off-by: Sinan Kaya 
---
  .../openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend  | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend 
b/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend
index dc0ea42..4cbd1a4 100644
--- a/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend
+++ b/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend
@@ -1,5 +1,4 @@
  # doesn't build and not required
  DEPENDS:remove:mingw32 = "libnsl2"
  
-EXTRA_OECMAKE:remove:mingw32 = "-DBUILD_SHARED_LIBS=ON"

-EXTRA_OECMAKE:append:mingw32 = " -DBUILD_SHARED_LIBS=OFF"
+PACKAGECONFIG:remove:mingw32 = "shared"


This is good, thanks. Is the libnsl2 also tied to some feature? Perhaps 
you can explain why it needs to be removed from MinGW




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



Re: [yocto] [PATCH v2 ptest-runner 2/2] main: Do not return number of failed tests when calling ptest-runner

2021-08-27 Thread ?ukasz Majewski
Hi Anibal,

> Up till now ptest-runner2 returns number of failed tests with its
> exit status code. Such use case is not recommended [1] and may cause
> issues when there are more than 256 tests to be executed.
> 
> To alleviate this issue the number of total tests with number of
> failed ones is printed before exit. To be more specific - failure of
> tests (one or more) causes ptest-runner to provide exit code of 1.
> 
> One can test this change with executing:
> ./ptest-runner -d tests/data fail

Gentle ping on this patch.

> 
> Links:
> [1] -
> https://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
> 
> Signed-off-by: Lukasz Majewski 
> ---
> Changes for v2:
> - When number of failed tests is N, the ptest-runner returns value of
> 1 to indicate error in the execution
> ---
>  main.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/main.c b/main.c
> index 890bc6a..bcec844 100644
> --- a/main.c
> +++ b/main.c
> @@ -220,6 +220,9 @@ main(int argc, char *argv[])
>   ptest_list_remove(run, opts.exclude[i], 1);
>  
>   rc = run_ptests(run, opts, argv[0], stdout, stderr);
> + fprintf(stdout, "TOTAL: %d FAIL: %d\n",
> ptest_list_length(run), rc);
> + if (rc > 0)
> + rc = 1;
>  
>   ptest_list_free_all(&run);
>  




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lu...@denx.de


pgpw23ZeQ5Yn1.pgp
Description: OpenPGP digital signature

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



Re: [yocto] building mbpoll

2021-08-27 Thread Josef Holzmayr

(re-adding list)

Am 27.08.2021 um 11:17 schrieb Ivan Riabtsov:

maybe mbpoll is not cloned? I found the custom-rts.c file on the
mbpoll website and try to search for it in the build directory, but I
can't find anything

my mbpoll_1.4.11.bb file:

SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "mbpoll recipe"
LICENSE = "CLOSED"

SRC_URI = "git://github.com/epsilonrt/mbpoll"
SRCREV = "2bf60281737e69221eb50c4ece813d10c0b4"

DEPENDS = "libmodbus"

S = "${WORKDIR}/git"

inherit pkgconfig cmake



again, any particular reason why you're poking the recipe by hand 
instead of just using devtool (which perfectly works in this case)? it 
would even give you a good start on the licenses, as well as not having 
missed the inherits.


Greetz

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



Re: [yocto] building mbpoll

2021-08-27 Thread Josef Holzmayr

Howdy!

Am 27.08.2021 um 10:10 schrieb Ivan Riabtsov:

Hi All. i need to build mbpoll git://github.com/epsilonrt/mbpoll
I was created layer:

ivr@home-machine:~/work/yocto_orig/sources/meta-mbpoll/recipes-mbpoll/mbpoll
$ cat mbpoll_1.4.11.bb
SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "mbpoll recipe"
LICENSE = "CLOSED"

SRC_URI = "git://github.com/epsilonrt/mbpoll"
SRCREV = "2b385d85d919138cefe79870c87c60eaa8b0d19c"

DEPENDS = "libmodbus"


if thats all of the recipe, then nothing will be built. you probably 
want to include at least the class for the buildsystem that you need, 
for example autotools, cmake, meson...


usually devtool is quite good at guessing that, so i'd suggest to start 
out with "devtool add"


Greetz



i was run:
rm -rf ./build/tmp ./build/sstate-cache ./build/deploy
and
bitbake mbpoll

i am trying to search for a package

ivr@home-machine:~/work/yocto_orig/build
$ find . -name 'mbpoll*.ipk'
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk

but i have only debug and dev packages, not simple mbpoll_version.ipk

i try to run:
bitbake -c clean mbpoll --force
and
bitbake mbpoll --force
but the task is done in a 1 second and

$ find . -name 'mbpoll*.ipk'
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk

found nothing

please tell me what am I doing wrong? Maybe I created the layer incorrectly?






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



[yocto] building mbpoll

2021-08-27 Thread Ivan Riabtsov
Hi All. i need to build mbpoll git://github.com/epsilonrt/mbpoll
I was created layer:

ivr@home-machine:~/work/yocto_orig/sources/meta-mbpoll/recipes-mbpoll/mbpoll
$ cat mbpoll_1.4.11.bb
SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "mbpoll recipe"
LICENSE = "CLOSED"

SRC_URI = "git://github.com/epsilonrt/mbpoll"
SRCREV = "2b385d85d919138cefe79870c87c60eaa8b0d19c"

DEPENDS = "libmodbus"

i was run:
rm -rf ./build/tmp ./build/sstate-cache ./build/deploy
and
bitbake mbpoll

i am trying to search for a package

ivr@home-machine:~/work/yocto_orig/build
$ find . -name 'mbpoll*.ipk'
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk

but i have only debug and dev packages, not simple mbpoll_version.ipk

i try to run:
bitbake -c clean mbpoll --force
and
bitbake mbpoll --force
but the task is done in a 1 second and

$ find . -name 'mbpoll*.ipk'
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk

found nothing

please tell me what am I doing wrong? Maybe I created the layer incorrectly?

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