distro/include/slugos.inc: Change DEPLOY_DIR and CACHE locations
authorKhem Raj <raj.khem@gmail.com>
Fri, 21 Jan 2011 21:52:03 +0000 (13:52 -0800)
committerKhem Raj <raj.khem@gmail.com>
Sat, 22 Jan 2011 08:22:05 +0000 (00:22 -0800)
* Current set of defines does not let slugos and ucslugc build in
  one tmpdir, this patch will let that happen and there by increase
  build times for those who would like to build both distros

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Mike Westerhof <mike@mwester.net>
conf/distro/include/slugos.inc

index 4c5b463..fa28ec5 100644 (file)
@@ -36,6 +36,11 @@ DISTRO_FEATURES = "largefile ipv4 ipv6 nfs smbfs wifi ppp alsa bluetooth ext2 vf
 
 IMAGE_BASENAME = "${@['slugos${SITEINFO_ENDIANNESS}', 'ucslugc'][bb.data.getVar('TARGET_OS', d, 1) == 'linux-uclibceabi']}"
 
+# Define CACHE and DEPLOY_DIR so we could do multi-distro/multi-machine builds
+
+CACHE = "${TMPDIR}/cache/${LIBC}/${MACHINE}"
+DEPLOY_DIR ?= "${TMPDIR}/deploy/${LIBC}"
+
 # The following need not be set, the defaults should be adequate
 #USE_NLS = "no" or "yes"
 USE_NLS ?= "no"