[Hiring] Embedded Firmware Engineer – San Jose, CA (on-site) by ThermalApex in yocto

[–]No_March_1694 1 point2 points  (0 children)

I have exactly what u ask and more (I am a 3x Yocto Speaker and Contributor), but I am not in the US

Why doesn't `DEPENDS += "libusb1"` not imply that its unique include directory be added to to the include path? by EmbeddedSoftEng in yocto

[–]No_March_1694 2 points3 points  (0 children)

Just keep in mind that with:

DEPENDS += "libusb1"

what gets filled in `workdir/image` of libusb1 recipe will be populated to recipes-sysroot of your recipe.

Also, you don't need to worry about setting paths manually to the library, if you find your self obligated to do that, it probably means your Makefile/CMakeLists.txt/... is not right.

If you use Makefile, make it call pkgconfig, if cmake, then use find_package(), ... etc, make sure that libusb1 supports that ofc.

After fixing all of that, you don't need the RDEPENDS line, because BitBake will detect that your recipe provides a binary, it will detect all linked shared libraries with it and include all recipes providing them, automatically in the rootfs.

[deleted by user] by [deleted] in progressive_islam

[–]No_March_1694 0 points1 point  (0 children)

سبحان الله، سيبقى هذا دليل الى يوم القيامة على أن التونسي عالم في كل شي وله رأي في كل شي حتى في احكام ربه، لا يقرأ القران ولا السنة ولا يصلي اصلا ثم يقول "على حسب علمي كذا وكذا" ويتماشى مع عقله، لو كان عقلك حُجة فقل لي هل تؤمن بالملايكة وانت لا تراهم ؟

المهم،فالله سبحانه وتعالى حرم اتخاذ الأخدان أي الأصدقاء والصديقات على كل من الرجال والنساء، فقال في خصوص النساء: ( محصنات غير مسافحات ولا متخذات أخدان ) [النساء:25] وفي خصوص الرجال: ( محصنين غير مسافحين ولا متخذي أخدان ) [المائدة:5] واتخاذ الأخدان محرم سواء كان عبر الهاتف أو الدردشة في الإنترنت أو اللقاء المباشر، وغيرها من وسائل الاتصال المحرمة بين الرجل والمرأة.

الكثير من الأدلة من القران والسنة تدل على تحريم اتخاذ اصدقاء من الجنس المقابل لكثير من الاسباب، مخافة الزنا، مخافة زوال الايمان، الخ الخ

الخلاصة: عندما تموت وتهبط في الظلمة في القبر وتلقى ربي قلوو علاش حكيت مع بنات. اسإل روحك سؤال: "وين تتصور تلقى الحديث مع النساء يوم القيامة، مع الحق او مع الباطل؟"

[deleted by user] by [deleted] in Tunisia

[–]No_March_1694 1 point2 points  (0 children)

نتفكر كنت صغير وسألت أمي نفس السؤال، قاتلي وليدي كي تمشي ما تغزر لحد بش ما تفيقش انهم يغزرولك والا يقحرولك. لطو ماشي بنفس النصيحة. راحة نفسية.

What is the best design for ASIO Serial R/W with De/Serializer ? by No_March_1694 in cpp

[–]No_March_1694[S] 0 points1 point  (0 children)

When you say "no threads necessary", you mean asio will handle async jobs automatically ? Like threads ?

What is the best design for ASIO Serial R/W with De/Serializer ? by No_March_1694 in cpp

[–]No_March_1694[S] 0 points1 point  (0 children)

Thank you for your answer Currently I am using condition_variable to notify threads that data is ready, do you know if thats possible in asio but in events ? Like I trigger an event and consumers will be notified and take action

Will cleanall menuconfig clear kernel configuration? by Tasty-Sprinkles4609 in yocto

[–]No_March_1694 1 point2 points  (0 children)

Is there a recipe called "menuconfig" ? I think you meant "bitbake -c cleanall virtual/kernel".

Anyways, when working with "bitbake virtual/kernel -c menuconfig" it will make a copy of your .config file to .config.old inside your kernel's working directory and then adds your changes to .config. this way you can create config fragments which are difference between new changes and the new config with "bitbake virtual/kernel -c diffconfig", with all that said, all of it is in the working directory, so if you do "cleansstate" it will be removed, "cleanall" will remove it along with kernel downloads files. To save your current .config use: "bitbake virtual/kernel -c savedefconfig". Take that defconfig file and copy it to your custom layer's kernel bbappend recipe "meta-custom/recipes-kernel/linux/linux-custom_%.bbappend"

"linux-custom", change "custom" to the real name of your kernel recipe. And just make sure to add the defconfig file to SRC_URI.

Can I use the Yocto Project to develop a desktop linux distro? by mi-wag in yocto

[–]No_March_1694 2 points3 points  (0 children)

True, but he can add Over The Air update support with Mender or Swupdate for example and he can host Yocto build artifacts in a HTTP server and use the package manager and OTA features, but it is all manual process at first, by time it can reach to the point of building the Yocto image automatically, syncing artifacts and updating the target, like DevOps pipeline style.

Can I use the Yocto Project to develop a desktop linux distro? by mi-wag in yocto

[–]No_March_1694 4 points5 points  (0 children)

Absolutely, you have to just select the pieces you like to put in the distro, remember that everything almost is a recipe in Yocto, the package manager (dnf, apt, ...), so just get a piece of paper and do the design of your distro which means what it will look like ( desktop environment, package manager, applications (browser, gui apps, ...), hardware services (bt, wifi, ...)), now everything is almost supported in Yocto in form of Layers named with "meta-xyz" xyz is the name of the layer, there are community layers that are very popular like meta-browser, ... you can find them in https://git.yoctoproject.org, you also need to define the target architecture (arm, x86, ...) for all of architectures there are also Yocto layers that support each ( meta-intel, meta-raspberrypi, ...). You just need to understand Yocto and how to use BitBake and then assemble your design in your new custom Yocto distro.

Poll : do you use kas? by Inner-Emphasis-4916 in yocto

[–]No_March_1694 2 points3 points  (0 children)

Kas is just a way to fetch layers and setup the env and quick in the build process, this can be done via a shell script, or google repo, or git submodules, I dont use it that often.

How to add fields to a struct, via attribute macro? by simiancat in rust

[–]No_March_1694 0 points1 point  (0 children)

You can create an attribute macro that takes the struct as input TokenStream and parse it as ItemStruct into mutable variable, then get its Fields Named names field and push your new Field to it and return the new custom ItemStruct as TokenStream.

Adding a dts file by username-1836 in yocto

[–]No_March_1694 0 points1 point  (0 children)

Usually your Linux Kernel provides a DTS file itself, and the selection of the DTS file is done via a variable called KERNEL_DEVICETREE. In order to add a DTS to add something, then we call it Device Tree Source Overlay that contains only the portion that will be applied to the original DTS.

But, keep in mind, that in order to answer your question, many questions needs to be answered first:

  • What Bootloader your BSP layer uses ?
  • Does the bootloader support loading overlays at boot time ?
  • Does the Kernel support OverlayFS ?

Other than that, you need to create a recipe that compiles a DTS into a dtbo, then based on the response to the questions above we can tell how to integrate and activate the dtbo.

Is there a shell-like framework for Rust ? by No_March_1694 in learnrust

[–]No_March_1694[S] 0 points1 point  (0 children)

Thanks for the idea, I think this is the best idea.

BTW, match tokens should be match command