1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 19:19:46 +01:00
build/pkg/toolchain/build
David Oberhollenzer 55463cf428 Cleanup dependencies to toolchain
- crt-dev is a dependency of toolchain
 - basefiles is a dependency of toolchain
 - libstdc++ is (now also) a dependency of toolchain

This commit removes direct build dependencies to the above and replacest
them with dependencies to the toolchain package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-30 23:28:30 +01:00

33 lines
No EOL
717 B
Text
Executable file

DEPENDS="tc-binutils crt-dev libstdc++-dev tc-pkg-config tc-file tc-pkgtool basefiles"
build() {
return
}
deploy() {
cat > "$CMAKETCFILE" << _EOF
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSROOT ${TCDIR}/${TARGET})
set(CMAKE_C_COMPILER ${TCDIR}/bin/${TARGET}-gcc)
set(CMAKE_C_COMPILER_TARGET ${TARGET})
set(CMAKE_CXX_COMPILER ${TCDIR}/bin/${TARGET}-g++)
set(CMAKE_CXX_COMPILER_TARGET ${TARGET})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
_EOF
touch "$PKGDEPLOYDIR/$PKGNAME.files"
cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF
requires $DEPENDS
_EOF
}
check_update() {
return
}