Skip to contentSkip to conversation

crops-generator, a kconfig based CROPS reuse system

RFC Eilís 'pidge' Ní Fhlannagáin 1 participant 1 message May 5, 2023 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · Eilís 'pidge' Ní Fhlannagáin via lists.yoctoproject.org

A while back, we had some discussion about how CROPS was being used and how we wanted people to reuse the work Tim and others in the project had been doing with CROPS. Tim and I had a few discussions over the past month or two and I've created a tool that I'd like some additional eyes on now.

crop-generator (https://github.com/crops/crops-generator) is a KConfig based dockerfile generator that uses the published crops container and generates custom docker containers for people. The current features exist around the use cases of people wanting to use crops but add their own packages or toolchains/sdks.

You will need to install pykconfiglib (https://pypi.org/project/kconfiglib/), docker, docker buildkit and kconfig-frontends.

# To bring up the menu and generate a .config:
kconfig-mconf ./Kconfig

Quoted 8 lines

# Convert the .config to a Dockerfile with associated files:
./crops_generator.py --kconf .config --docker <containercontext>

# Build the container
DOCKER_BUILDKIT=1 docker build <containercontext>

-e

One note. A decent repo and kas and oe-setup-layers example for https://github.com/crops/crops-generator/tree/main/config/repo would be nice as well, if anyone has one to contribute.

Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59886): https://lists.yoctoproject.org/g/yocto/message/59886
Mute This Topic: https://lists.yoctoproject.org/mt/98707325/7332033
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Eilís 'pidge' Ní Fhlannagáin
BayLibre - At the Heart of Embedded Linux
www.baylibre.com