genodeLibcCross: no dummy libraries
The ABI stub libraries are not mechanically derived from real libraries and must not be used for non-depot builds.
This commit is contained in:
parent
b8bbdc8d0f
commit
65a06a1981
|
@ -1,26 +1,18 @@
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
{ genodeSources, genodeBase, writeText }:
|
{ genodeSources, genodeBase, symlinkJoin }:
|
||||||
|
|
||||||
genodeSources.buildDepot {
|
symlinkJoin {
|
||||||
name = "posix";
|
name = "posix";
|
||||||
propagatedBuildInputs = [ genodeBase ];
|
paths = map genodeSources.depot [ "libc" "posix" ];
|
||||||
portInputs = [ genodeSources.ports.libc ];
|
postBuild = ''
|
||||||
preInstall =
|
|
||||||
# Take the libc ABI stubs rather than the actual libc.
|
|
||||||
# The libc needs a lot of work and we can't afford to
|
|
||||||
# rebuild the toolchain for every fix.
|
|
||||||
''
|
|
||||||
find depot -name libc.abi.so -exec install -D {} "''${!outputLib}/libc.so" \;
|
|
||||||
'';
|
|
||||||
postInstall = ''
|
|
||||||
local headerDir="''${!outputDev}/include"
|
local headerDir="''${!outputDev}/include"
|
||||||
mkdir -p "$headerDir"
|
mkdir -p "$headerDir"
|
||||||
pushd ${genodeSources.ports.libc}/*
|
pushd ${genodeSources.ports.libc}/*
|
||||||
cp -r \
|
cp -r \
|
||||||
include/libc/* \
|
include/libc/* \
|
||||||
include/openlibm/* \
|
include/openlibm/* \
|
||||||
$GENODE_DIR/repos/libports/include/libc \
|
${genodeSources}/repos/libports/include/libc \
|
||||||
"$headerDir"
|
"$headerDir"
|
||||||
for spec in ${toString genodeSources.specs}; do
|
for spec in ${toString genodeSources.specs}; do
|
||||||
dir=include/spec/$spec/libc
|
dir=include/spec/$spec/libc
|
||||||
|
|
Loading…
Reference in New Issue