2
0
genodepkgs/overlay/libc/default.nix
Emery Hemingway 559f4aa3c0 Add aarch64 platform
Add the hw-virt_qemu platform to tests, rename hw to hw-pc.
2020-06-03 16:56:33 +05:30

26 lines
600 B
Nix

# SPDX-License-Identifier: CC0-1.0
{ genodeSources, symlinkJoin }:
symlinkJoin {
name = "posix";
paths = map genodeSources.depot [ "libc" "posix" ];
postBuild = ''
local headerDir="''${!outputDev}/include"
mkdir -p "$headerDir"
pushd ${genodeSources.ports.libc}/*
cp -r \
include/libc/* \
include/openlibm/* \
${genodeSources}/repos/libports/include/libc \
"$headerDir"
for spec in ${toString genodeSources.specs}; do
dir=include/spec/$spec/libc
if [ -d $dir ]; then
cp -r $dir/* "$headerDir"
fi
done
popd
'';
}