Restore default directory layout
All checks were successful
build / check (push) Successful in 26s
build / build (push) Successful in 3m47s

This commit is contained in:
Sebastian Wendel 2023-09-15 19:18:25 +02:00
parent c32ad3e76e
commit 0b8308e9d1
2 changed files with 2 additions and 27 deletions

View file

@ -91,13 +91,6 @@ in
patchPhase = ''
patchShebangs .
substituteInPlace cmake/zephyr/host-tools.cmake \
--replace "/usr/share" "/share" \
--replace "/sysroots/\*-pokysdk-linux" ""
substituteInPlace cmake/Zephyr-sdkConfig.cmake \
--replace ".. ABSOLUTE" "../.. ABSOLUTE"
'';
dontConfigure = true;
@ -106,25 +99,8 @@ in
installPhase = ''
runHook preInstall
mkdir -p $out/{share,lib}
# remove deprecated symbolic links
find ./sysroots/$(uname -m)-pokysdk-linux/usr/bin -type l -exec unlink {} \;
# add zephyr-sdk standalone hosttools
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/{bin,libexec,share} $out/
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/synopsys/bin/qemu-system-* $out/bin/
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/xilinx/bin/qemu-system-aarch64 \
$out/bin/qemu-system-xilinx-aarch64
mv ./sysroots/$(uname -m)-pokysdk-linux/usr/xilinx/bin/qemu-system-microblazeel \
$out/bin/qemu-system-xilinx-microblazeel
# add zephyr-sdk cmake modules
mv ./cmake $out/lib/cmake
mv ./sdk_* $out/lib
# add zephyr-sdk cross compilers
mv ./*zephyr*/bin/* $out/bin/
mkdir -p $out
mv * $out
runHook postInstall
'';

View file

@ -1,7 +1,6 @@
addZephyrSDKCEnvVars() {
export ZEPHYR_TOOLCHAIN_VARIANT=zephyr
export ZEPHYR_SDK_INSTALL_DIR=@out@
export CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH:@out@/lib/cmake/
}
addEnvHooks "$hostOffset" addZephyrSDKCEnvVars