VERSION="1.1.18" SRCDIR="musl-$VERSION" TARBALL="$SRCDIR.tar.gz" URL="https://www.musl-libc.org/releases" SHA256SUM="d017ee5d01aec0c522a1330fdff06b1e428cb409e1db819cc4935d5da4a5a118" DEPENDS="tc-gcc1 linux_headers" prepare() { return } build() { CC="${TARGET}-gcc" $1/configure --prefix=/ --target="$TARGET" CC="${TARGET}-gcc" make -j $NUMJOBS } deploy() { local INPUT="$1" local DEPLOY="$2" local DEVDEPLOY="$3" DESTDIR="$DEVDEPLOY" make install-headers DESTDIR="$DEVDEPLOY" make install-libs rm $DEVDEPLOY/lib/*.so* DESTDIR="$DEPLOY" make install-libs rm $DEPLOY/lib/*.a $DEPLOY/lib/*.o mkdir -p "$DEPLOY/etc" echo "/lib" > "$DEPLOY/etc/ld-musl-${MUSL_CPU}.path" if [ -e "$SCRIPTDIR/board/$BOARD/LDPATH" ]; then cat "$SCRIPTDIR/board/$BOARD/LDPATH" >> "$DEPLOY/etc/ld-musl-${MUSL_CPU}.path" fi strip_files ${DEPLOY}/lib/* }