Hello all,

I am trying to build GrapheneOS for Pixel 7a (lynx) following the build instructions. However during
extracting of vendor files I am running into an issue with the recent version of build.html.
/usr/share/nodejs/yarn/bin/yarn install --cwd vendor/adevtool/ ## path to yarn on Debian 12
source script/envsetup.sh
m aapt2

works fine.

jenkins@host:~/graphene/r-2023090200$ /usr/share/nodejs/yarn/bin/yarn install --cwd vendor/adevtool/
yarn install v1.22.19
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.46s.
jenkins@host:~/graphene/r-2023090200$ source script/envsetup.sh
BUILD_DATETIME=1693867866
BUILD_NUMBER=2023090400
jenkins@host:~/graphene/r-2023090200$ m aapt2
build/make/core/soong_config.mk:209: warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
build/make/core/soong_config.mk:210: warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated. Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.


PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=13
TARGET_PRODUCT=aosp_arm64
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=generic
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-6.2.16-3-pve-x86_64-Debian-GNU/Linux-12-(bookworm)
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=TQ3A.230805.001
PLATFORM_SECURITY_PATCH=2023-08-05
OUT_DIR=out
PRODUCT_SOONG_NAMESPACES=device/generic/goldfish device/generic/goldfish-opengl hardware/google/camera hardware/google/camera/devices/EmulatedCamera


ninja: no work to do.

// #### build completed successfully (14 seconds) #### ### /// incremental build

jenkins@host:~/graphene/r-2023090200$ type adevtool
adevtool is aliased to `vendor/adevtool/bin/run'
jenkins@host:~/graphene/r-2023090200$ type adevtool

However the next step
adevtool generate-all -d lynx
Is then running into an error:
jenkins@host:~/graphene/r-2023090200$ adevtool generate-all -d lynx
Unpacking image: lynx-TQ3A.230805.001
Error: spawn debugfs ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:476:16)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
jenkins@host:~/graphene/r-2023090200$ echo $?
1
jenkins@host:~/graphene/r-2023090200$

Was that update of the build.html document correct? And are there any build scripts available how the GrapheneOS team is building the releases?

Thanks!

Hi there, and welcome!

In the case you don't get a prompt answer here, I would suggest asking in the GrapheneOS development chatroom on Matrix.

https://matrix.to/#/#dev:grapheneos.org

There are a great number of developers active in that chatroom, and relatively few who frequent this forum.

The hint in the channel was that debugfs wasn't available. Solved this by
export PATH=/sbin:$PATH