Add possibility to remove headers from libc headers
This commit is contained in:
@@ -220,7 +220,7 @@ def installHeaders(extra=[]):
|
|||||||
# Settle the correct build symlink to this headers
|
# Settle the correct build symlink to this headers
|
||||||
pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix)
|
pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix)
|
||||||
|
|
||||||
def installLibcHeaders():
|
def installLibcHeaders(excludes=[]):
|
||||||
headers_tmp = os.path.join(get.installDIR(), 'tmp-headers')
|
headers_tmp = os.path.join(get.installDIR(), 'tmp-headers')
|
||||||
headers_dir = os.path.join(get.installDIR(), 'usr/include')
|
headers_dir = os.path.join(get.installDIR(), 'usr/include')
|
||||||
|
|
||||||
@@ -246,6 +246,9 @@ def installLibcHeaders():
|
|||||||
# Remove sound/ directory which is installed by alsa-headers
|
# Remove sound/ directory which is installed by alsa-headers
|
||||||
shelltools.system("rm -rf %s/sound" % headers_dir)
|
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)
|
shelltools.cd(oldwd)
|
||||||
|
|
||||||
# FIXME: Do we really need to delete those directories below?
|
# FIXME: Do we really need to delete those directories below?
|
||||||
|
|||||||
Reference in New Issue
Block a user