Skip to contentSkip to conversation

gn: Add recipe

PATCH Superseded Khem Raj 1 participant 1 message Sep 27, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 1/1 gn: Add recipe

gn is a commonly used build tool to generate ninja files, used in a lot of recipes e.g. chromium, qtwebengine, perfetto, hafnium etc. these recipes come from different layers e.g. meta-qt6/meta-arm/meta-oe

since not all layers depend on meta-oe ( meta-arm does not ), its not a possible option.

Given the usecases, putting it in core will benefit the ecosystem and reduce some duplication. This recipe is taken from meta-arm

---
v2:
* Disable shallow clone, build fails gen.py does not work with it
* Add build progress for do_compile
* Update to latest commit on main

 meta/conf/distro/include/maintainers.inc |  1 +
 meta/recipes-devtools/gn/gn_git.bb       | 51 ++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 meta/recipes-devtools/gn/gn_git.bb
meta/conf/distro/include/maintainers.inc +1 -0
index 0988bf50a72..85a9914469b 100644
@@ -224,6 +224,7 @@ RECIPE_MAINTAINER:pn-glibc-scripts = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-glibc-testsuite = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-gmp = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-glslang = "Jose Quaresma <[email protected]>"
+RECIPE_MAINTAINER:pn-gn = "Khem Raj <[email protected]>"
 RECIPE_MAINTAINER:pn-gnome-desktop-testing = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-gnu-config = "Robert Yang <[email protected]>"
 RECIPE_MAINTAINER:pn-gnu-efi = "Yi Zhao <[email protected]>"
meta/recipes-devtools/gn/gn_git.bb new file +51 -0

51 lines not on this page · raw message