On Having Built Linux for a Small System


Explanation: Config/kgcc/v2.95.3-2.mak

		cd ${EXTTEMP}/gcc-minimal-xtc || exit 1 ;\
		CC=${HTC_GCC} \
			${EXTTEMP}/gcc-${VERSION}/configure -v \
			  --prefix=${XTC_ROOT}/usr \
			  --target=`echo ${TARGET_SPEC} | sed 's/-[^-]*-/-xnc_k-/'` \
			  --enable-languages=c \
			  --disable-nls \
			  --enable-shared \
			  --without-headers \
			  --with-newlib \
			  || exit 1 \

		make all-gcc || exit 1 ;\

	  	make install-gcc || exit 1 ;\
		mkdir -p ${XTC_ROOT}/usr/`echo ${TARGET_SPEC} | sed 's/-[^-]*-/-xnc_k-/'`/bin || exit 1 ;\
		for EXE in addr2line ar as c++filt ld nm \
			objcopy objdump ranlib readelf size \
			strings strip ; do \
			( cd ${XTC_ROOT}/usr/bin && ln -sf ${TARGET_SPEC}-$${EXE} `echo ${TARGET_SPEC} | sed 's/-[^-]*-/-xnc_k-/'`-$${EXE} ) || exit 1 ;\
			( cd ${XTC_ROOT}/usr/`echo ${TARGET_SPEC} | sed 's/-[^-]*-/-xnc_k-/'`/bin && ln -sf ../../${TARGET_SPEC}/bin/$${EXE} ./ ) || exit 1 ;\
		done \