Add possibility to remove headers from libc headers

This commit is contained in:
Ozan Çağlayan
2009-10-13 12:58:47 +00:00
parent efbce1e7f0
commit 4bc449880f
+4 -1
View File
@@ -220,7 +220,7 @@ def installHeaders(extra=[]):
# Settle the correct build symlink to this headers
pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix)
def installLibcHeaders():
def installLibcHeaders(excludes=[]):
headers_tmp = os.path.join(get.installDIR(), 'tmp-headers')
headers_dir = os.path.join(get.installDIR(), 'usr/include')
@@ -246,6 +246,9 @@ def installLibcHeaders():
# Remove sound/ directory which is installed by alsa-headers
shelltools.system("rm -rf %s/sound" % headers_dir)
# Remove possible excludes given by actions.py
shelltools.system("rm -rf %s" % " ".join(["%s/%s" % (headers_dir, exc.strip("/")) for exc in excludes))
shelltools.cd(oldwd)
# FIXME: Do we really need to delete those directories below?