From 30e6a8197ee575ea0a5d1ba6aa6478f2acec8884 Mon Sep 17 00:00:00 2001 From: bauen1 Date: Tue, 4 Jul 2017 19:43:17 +0200 Subject: [PATCH 1/2] Fixed nweb not compiling against sysroot --- src/minimal_overlay/bundles/nweb/bundle.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/minimal_overlay/bundles/nweb/bundle.sh b/src/minimal_overlay/bundles/nweb/bundle.sh index 1ea6d676b..837b44a18 100755 --- a/src/minimal_overlay/bundles/nweb/bundle.sh +++ b/src/minimal_overlay/bundles/nweb/bundle.sh @@ -14,11 +14,13 @@ rm -rf $MAIN_SRC_DIR/work/overlay/nweb mkdir -p $MAIN_SRC_DIR/work/overlay/nweb cd $MAIN_SRC_DIR/work/overlay/nweb +set -x # nweb -cc $CFLAGS $SRC_DIR/nweb23.c -o nweb +gcc $CFLAGS --sysroot=$MAIN_SRC_DIR/work/glibc/glibc_prepared/ $SRC_DIR/nweb23.c -o nweb # client #cc $CFLAGS $SRC_DIR/client.c -o client +set +x echo "nweb has been build." From f1867fd1d2151ebe414d9fe06c2490f481cde8cc Mon Sep 17 00:00:00 2001 From: AwlsomeAlex Date: Wed, 5 Jul 2017 21:57:43 -0400 Subject: [PATCH 2/2] Fixed Kernel 4.10 =< Support --- src/02_build_kernel.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/02_build_kernel.sh b/src/02_build_kernel.sh index e2dad5af0..45eb2e1d6 100755 --- a/src/02_build_kernel.sh +++ b/src/02_build_kernel.sh @@ -52,6 +52,9 @@ else # Enable overlay support, e.g. merge ro and rw directories. sed -i "s/.*CONFIG_OVERLAY_FS.*/CONFIG_OVERLAY_FS=y/" .config + # Enable overlayfs redirection + echo "CONFIG_OVERLAY_FS_REDIRECT_DIR=y" >> .config + # Step 1 - disable all active kernel compression options (should be only one). sed -i "s/.*\\(CONFIG_KERNEL_.*\\)=y/\\#\\ \\1 is not set/" .config @@ -77,6 +80,9 @@ else # Enable the EFI stub sed -i "s/.*CONFIG_EFI_STUB.*/CONFIG_EFI_STUB=y/" .config + + # Disable Apple Properties (Useful for Macs but useless in general) + echo "CONFIG_APPLE_PROPERTIES=n" >> .config # Check if we are building 32-bit kernel. The exit code is '1' when we are # building 64-bit kernel, otherwise the exit code is '0'.