"umount -n %s" % self.chrootPath("proc"),
"umount -n %s" % self.chrootPath("sys"),
"umount -n %s" % self.chrootPath("usr", "src", "cache"),
+ "umount -n %s" % self.chrootPath("usr", "src", "ccache"),
"umount -n %s" % self.chrootPath("usr", "src", "packages"),
"umount -n %s" % self.chrootPath("usr", "src", "pkgs"),
"umount -n %s" % self.chrootPath("usr", "src", "src"),
"mount -n -t proc naoki_chroot_proc %s" % self.chrootPath("proc"),
"mount -n -t sysfs naoki_chroot_sysfs %s" % self.chrootPath("sys"),
"mount -n --bind %s %s" % (os.path.join(CACHEDIR), self.chrootPath("usr", "src", "cache")),
+ "mount -n --bind %s %s" % (os.path.join(CCACHEDIR), self.chrootPath("usr", "src", "ccache")),
"mount -n --bind %s %s" % (os.path.join(PACKAGESDIR), self.chrootPath("usr", "src", "packages")),
"mount -n --bind %s %s" % (os.path.join(PKGSDIR), self.chrootPath("usr", "src", "pkgs")),
"mount -n --bind %s %s" % (os.path.join(BASEDIR, "src"), self.chrootPath("usr", "src", "src")),
self.chrootPath("tmp"),
self.chrootPath("tools_i686"),
self.chrootPath("usr/src/cache"),
+ self.chrootPath("usr/src/ccache"),
self.chrootPath("usr/src/packages"),
self.chrootPath("usr/src/pkgs"),
self.chrootPath("usr/src/src"),
"CHROOT" : "1",
})
+ if os.path.exists(self.chrootPath("usr", "ccache")):
+ env.update({
+ "PATH" : "/usr/ccache/bin:%s" % env["PATH"],
+ "CCACHE_DIR" : "/usr/src/ccache",
+ })
+
if kwargs.has_key("env"):
env.update(kwargs.pop("env"))
BUILDDIR = os.path.join(BASEDIR, "build")
CACHEDIR = os.path.join(BASEDIR, "cache")
+CCACHEDIR = os.path.join(BASEDIR, "ccache")
CONFIGDIR = os.path.join(BASEDIR, "config")
LOGDIR = os.path.join(BASEDIR, "logs")
PKGSDIR = os.path.join(BASEDIR, "pkgs")
_items = {
"toolchain" : False,
"mandatory_packages" : [
+ "core/ccache",
"core/gcc",
"core/glibc",
"core/make",