Merge pull request #9 from PM2D/main

Some build fixes
This commit is contained in:
Douglas Teles
2026-03-05 21:24:45 -03:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -112,6 +112,7 @@ mount --bind /sys "$ROOTFS_DIR/sys"
mount --bind /run "$ROOTFS_DIR/run"
# DNS resolution
rm "$ROOTFS_DIR/etc/resolv.conf"
cp /etc/resolv.conf "$ROOTFS_DIR/etc/resolv.conf"
log " ✓ Chroot environment ready"
@@ -1062,8 +1063,9 @@ SETUP_EOF
chmod +x "$ROOTFS_DIR/tmp/setup.sh"
# Copy libvlc stub into chroot (needed by bloat cleanup — ES links against libvlc.so.5)
cp "$SCRIPT_DIR/scripts/libvlc-stub-aarch64.so" "$ROOTFS_DIR/tmp/libvlc-stub.so"
# Build libvlc stub into chroot (needed by bloat cleanup — ES links against libvlc.so.5)
aarch64-linux-gnu-gcc -shared -O2 -o "$ROOTFS_DIR/tmp/libvlc-stub.so" "$SCRIPT_DIR/scripts/vlc-stub.c"
aarch64-linux-gnu-strip "$ROOTFS_DIR/tmp/libvlc-stub.so"
# Copy modules.bad into chroot (installed by setup.sh to /etc/archr/)
cp "$SCRIPT_DIR/config/modules.bad" "$ROOTFS_DIR/tmp/modules.bad"

0
setup-toolchain.sh Normal file → Executable file
View File