Lines 18-24
Link Here
|
18 |
self.valid_values.extend(["version_stamp","target","subarch",\ |
18 |
self.valid_values.extend(["version_stamp","target","subarch",\ |
19 |
"rel_type","profile","snapshot","source_subpath","portage_confdir",\ |
19 |
"rel_type","profile","snapshot","source_subpath","portage_confdir",\ |
20 |
"cflags","cxxflags","ldflags","cbuild","chost","hostuse","portage_overlay",\ |
20 |
"cflags","cxxflags","ldflags","cbuild","chost","hostuse","portage_overlay",\ |
21 |
"distcc_hosts","makeopts","pkgcache_path","kerncache_path"]) |
21 |
"distcc_hosts","makeopts","pkgcache_path","kerncache_path","extra_mounts"]) |
22 |
|
22 |
|
23 |
self.set_valid_build_kernel_vars(addlargs) |
23 |
self.set_valid_build_kernel_vars(addlargs) |
24 |
generic_target.__init__(self,myspec,addlargs) |
24 |
generic_target.__init__(self,myspec,addlargs) |
Lines 198-203
Link Here
|
198 |
self.mounts.append("/tmp/kerncache") |
198 |
self.mounts.append("/tmp/kerncache") |
199 |
self.mountmap["/tmp/kerncache"]=self.settings["kerncache_path"] |
199 |
self.mountmap["/tmp/kerncache"]=self.settings["kerncache_path"] |
200 |
|
200 |
|
|
|
201 |
if self.settings.has_key("extra_mounts"): |
202 |
for extra_mount in self.settings["extra_mounts"].split(): |
203 |
if ':' in extra_mount: |
204 |
extra_mount_source, extra_mount_target = extra_mount.split(':', 1) |
205 |
else: |
206 |
extra_mount_source = extra_mount_target = extra_mount |
207 |
self.mounts.append(extra_mount_target) |
208 |
self.mountmap[extra_mount_target] = extra_mount_source |
209 |
|
201 |
if self.settings.has_key("CCACHE"): |
210 |
if self.settings.has_key("CCACHE"): |
202 |
if os.environ.has_key("CCACHE_DIR"): |
211 |
if os.environ.has_key("CCACHE_DIR"): |
203 |
ccdir=os.environ["CCACHE_DIR"] |
212 |
ccdir=os.environ["CCACHE_DIR"] |
Lines 736-743
Link Here
|
736 |
print "Configuring profile link..." |
745 |
print "Configuring profile link..." |
737 |
cmd("rm -f "+self.settings["chroot_path"]+"/etc/make.profile",\ |
746 |
cmd("rm -f "+self.settings["chroot_path"]+"/etc/make.profile",\ |
738 |
"Error zapping profile link",env=self.env) |
747 |
"Error zapping profile link",env=self.env) |
739 |
cmd("ln -sf ../usr/portage/profiles/"+self.settings["target_profile"]+\ |
748 |
if self.settings['target_profile'][0] == '/': |
740 |
" "+self.settings["chroot_path"]+"/etc/make.profile","Error creating profile link",env=self.env) |
749 |
symlink_target = self.settings["target_profile"] |
|
|
750 |
else: |
751 |
symlink_target = "../usr/portage/profiles/"+self.settings["target_profile"] |
752 |
cmd("ln -sf " + symlink_target + " " + \ |
753 |
self.settings["chroot_path"]+"/etc/make.profile","Error creating profile link",env=self.env) |
741 |
touch(self.settings["autoresume_path"]+"config_profile_link") |
754 |
touch(self.settings["autoresume_path"]+"config_profile_link") |
742 |
|
755 |
|
743 |
def setup_confdir(self): |
756 |
def setup_confdir(self): |