Skip to content

Commit 2cdb850

Browse files
committed
chromium: Set the expected NodeJS version to the one Yocto has
Chromium is tested against a specific NodeJS version to build with, but it works with slightly older versions, too. Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
1 parent 80a2f89 commit 2cdb850

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

meta-chromium/recipes-browser/chromium/chromium-gn.inc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,13 @@ addtask copy_target_rustlibs after do_configure before do_compile
515515

516516
do_configure() {
517517
cd ${S}
518+
519+
# Fix potential failure for the NodeJS version check.
520+
# Chromium is tested against a specific NodeJS version but it works
521+
# with slightly older versions, too.
522+
NODE_VERSION=$(node -v)
523+
sed -i s/^NODE_VERSION=.*/NODE_VERSION=\"$NODE_VERSION\"/g third_party/node/update_node_binaries
524+
518525
python3 ./build/linux/unbundle/replace_gn_files.py --system-libraries ${GN_UNBUNDLE_LIBS}
519526

520527
# Add Rust-style target triples (converted by Yocto's rust-common.bbclass)

0 commit comments

Comments
 (0)