###############################################################################
# Cleanup environment from any variables
-unexport BUILD_ARCH BUILD_PLATFORM BUILDTARGET CROSSTARGET TOOLCHAIN
+unexport BUILD_ARCH BUILD_PLATFORM BUILDTARGET CROSSTARGET TOOLCHAIN TOOLS_DIR
ifeq "$(BUILD_ARCH)" "aarch64"
IS_64BIT = 1
IS_64BIT = 1
endif
+ifeq "$(TOOLCHAIN)" "1"
+ PREFIX = $(TOOLS_DIR)
+else
+ PREFIX = /usr
+endif
+
# URLs that are common sources of downloads. If you're having trouble with
# a site you should change its URL to that of a suitable mirror site.
#
#
define FIND_FILES
cd $(ROOT)/ && find -mount \
- \( -path './tools' -or -path './tmp' -or -path './usr/src' \
+ \( -path '.$(TOOLS_DIR)' -or -path './tmp' -or -path './usr/src' \
-or -path './run' -or -path './dev' -or -path './proc' \
-or -path './install' \) -prune -or -print | sort
endef
# error mean file signature don't match the one in lfs script
[ "$($@_MD5)" = `md5sum $(DIR_DL)/$@ | awk '{ print $$1 }'` ]
echo "$@ checksum OK"
- echo "$@" >>$(DIR_INFO)/_build.othersrc-list.log
endef
define PAK