diff --git a/scripts/pxestick.sh b/scripts/pxestick.sh index b4fa719..5b8772e 100755 --- a/scripts/pxestick.sh +++ b/scripts/pxestick.sh @@ -2,14 +2,93 @@ set -e +BUILD_TYPE=RELEASE +#BUILD_TYPE=DEBUG +TOOLCHAIN=GCC5 + +pushd edk2 >/dev/null + make -C BaseTools --jobs="$(nproc)" + source edksetup.sh --reconfig + + build \ + -a X64 \ + -b "${BUILD_TYPE}" \ + -t "${TOOLCHAIN}" \ + -p "OptionRomPkg/OptionRomPkg.dsc" + DRIVER="${PWD}/Build/OptionRomPkg/${BUILD_TYPE}_${TOOLCHAIN}/X64/Ax88772.efi" + + build \ + -a X64 \ + -b "${BUILD_TYPE}" \ + -t "${TOOLCHAIN}" \ + -p "ShellPkg/ShellPkg.dsc" + SHELL="${PWD}/Build/Shell/${BUILD_TYPE}_${TOOLCHAIN}/X64/Shell.efi" +popd >/dev/null + rm -rf build/pxestick mkdir -p build/pxestick cd build/pxestick wget -O ipxe.efi http://boot.ipxe.org/ipxe.efi -dd if=/dev/zero of=usb.img.partial bs=512 count=2048 + +cat > startup.nsh <