public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v3 0/3] sdk: make SDK an image
@ 2021-12-17  9:10 Adriaan Schmidt
  2021-12-17  9:10 ` [PATCH v3 1/3] image: remove IMAGE_SUFFIX Adriaan Schmidt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Adriaan Schmidt @ 2021-12-17  9:10 UTC (permalink / raw)
  To: isar-users; +Cc: Adriaan Schmidt

Here's my new proposal to refactor the SDK generation.
For all recipes inheriting image.bbclass, this automatically provides
a *-sdk bitbake target. This can be built to generate the SDK, and
in addition the original build target has -cpopulate_sdk to preserve
the current interface to the user.

As SDKs are very image-specific, I changed SDKCHROOT_DIR (which is
the sdk deploy location below tmp/deploy/sdkchroot) to include the
target image name and ${MACHINE} instead of ${DISTRO}-${DISTROARCH}.
Seemed right to me, but we can discuss.

Two other commits included:
- remove image suffix: already in discussion. This simplifies things,
  and at least in my limited local tests does not cause any problems.
- change how image tasks are added. This is just to enable testing
  the new SDK feature stand-alone.

Adriaan Schmidt (3):
  image: remove IMAGE_SUFFIX
  image: refactor SDK
  image: include all types and add tasks on demand

 meta/classes/container-img.bbclass            |   2 -
 meta/classes/cpiogz-img.bbclass               |   1 -
 meta/classes/ext4-img.bbclass                 |   1 -
 meta/classes/fit-img.bbclass                  |   2 +-
 meta/classes/image-sdk-extension.bbclass      |  87 -----------
 meta/classes/image.bbclass                    |  32 +++-
 meta/classes/sdk.bbclass                      | 137 ++++++++++++++++++
 meta/classes/targz-img.bbclass                |   1 -
 meta/classes/ubi-img.bbclass                  |   4 +-
 meta/classes/ubifs-img.bbclass                |   3 +-
 meta/classes/wic-img.bbclass                  |   1 -
 .../{sdkchroot => sdk-files}/files/README.sdk |   0
 .../files/configscript.sh                     |   0
 .../files/gcc-sysroot-wrapper.sh              |   0
 .../files/relocate-sdk.sh                     |   0
 meta/recipes-devtools/sdk-files/sdk-files.bb  |  26 ++++
 meta/recipes-devtools/sdkchroot/sdkchroot.bb  |  78 ----------
 17 files changed, 192 insertions(+), 183 deletions(-)
 delete mode 100644 meta/classes/image-sdk-extension.bbclass
 create mode 100644 meta/classes/sdk.bbclass
 rename meta/recipes-devtools/{sdkchroot => sdk-files}/files/README.sdk (100%)
 rename meta/recipes-devtools/{sdkchroot => sdk-files}/files/configscript.sh (100%)
 rename meta/recipes-devtools/{sdkchroot => sdk-files}/files/gcc-sysroot-wrapper.sh (100%)
 rename meta/recipes-devtools/{sdkchroot => sdk-files}/files/relocate-sdk.sh (100%)
 create mode 100644 meta/recipes-devtools/sdk-files/sdk-files.bb
 delete mode 100644 meta/recipes-devtools/sdkchroot/sdkchroot.bb

-- 
2.30.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-17 10:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17  9:10 [PATCH v3 0/3] sdk: make SDK an image Adriaan Schmidt
2021-12-17  9:10 ` [PATCH v3 1/3] image: remove IMAGE_SUFFIX Adriaan Schmidt
2021-12-17 10:22   ` Jan Kiszka
2021-12-17  9:10 ` [PATCH v3 2/3] image: refactor SDK Adriaan Schmidt
2021-12-17  9:10 ` [PATCH v3 3/3] image: include all types and add tasks on demand Adriaan Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox