commit:     53af887e40b1cd00ab640b3a4dd6198f0059347b
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  8 14:21:04 2015 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Tue Sep  8 14:21:20 2015 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=53af887e

add asflags support per bug 538650 from Kumba

 catalyst/base/stagebase.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 17d88cd..5eb8fc9 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -41,7 +41,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
 
                self.valid_values.extend(["version_stamp","target","subarch",
                        
"rel_type","profile","snapshot","source_subpath","portage_confdir",
-                       
"cflags","cxxflags","fcflags","fflags","ldflags","cbuild","hostuse","portage_overlay",
+                       
"cflags","cxxflags","fcflags","fflags","ldflags","asflags","cbuild","hostuse","portage_overlay",
                        
"distcc_hosts","makeopts","pkgcache_path","kerncache_path",
                        "compression_mode", "decompression_mode"])
 
@@ -304,6 +304,10 @@ class StageBase(TargetBase, ClearBase, GenBase):
                if "LDFLAGS" in self.makeconf:
                        self.settings["LDFLAGS"]=self.makeconf["LDFLAGS"]
 
+       def override_asflags(self):
+               if "ASFLAGS" in self.makeconf:
+                       self.settings["ASFLAGS"]=self.makeconf["ASFLAGS"]
+
        def set_install_mask(self):
                if "install_mask" in self.settings:
                        if 
type(self.settings["install_mask"])!=types.StringType:
@@ -1033,6 +1037,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                self.override_fcflags()
                self.override_fflags()
                self.override_ldflags()
+               self.override_asflags()
                if "autoresume" in self.settings["options"] \
                        and self.resume.is_enabled("chroot_setup"):
                        print "Resume point detected, skipping chroot_setup 
operation..."
@@ -1107,6 +1112,9 @@ class StageBase(TargetBase, ClearBase, GenBase):
                        if "LDFLAGS" in self.settings:
                                myf.write("# LDFLAGS is unsupported.  USE AT 
YOUR OWN RISK!\n")
                                
myf.write('LDFLAGS="'+self.settings["LDFLAGS"]+'"\n')
+                       if "ASFLAGS" in self.settings:
+                               myf.write("# ASFLAGS is unsupported.  USE AT 
YOUR OWN RISK!\n")
+                               
myf.write('ASFLAGS="'+self.settings["ASFLAGS"]+'"\n')
                        if "CBUILD" in self.settings:
                                myf.write("# This should not be changed unless 
you know exactly what you are doing.  You\n# should probably be using a 
different stage, instead.\n")
                                
myf.write('CBUILD="'+self.settings["CBUILD"]+'"\n')

Reply via email to