Kaydet (Commit) 562e7f18 authored tarafından Suleyman Poyraz's avatar Suleyman Poyraz

Merge branch 'kernel'

......@@ -131,8 +131,8 @@ def configure():
# Copy the relevant configuration file
# Set EXTRAVERSION
inarytools.dosed("Makefile", "EXTRAVERSION =.*", "EXTRAVERSION = {}".format(__getExtraVersion()))
inarytools.dosed("Makefile", "EXTRAVERSION =.*", "EXTRAVERSION = {}".format(__getExtraVersion()))
# Configure the kernel interactively if
# configuration contains new options
autotools.make("ARCH={} oldconfig".format(__getKernelARCH()))
......@@ -197,8 +197,10 @@ def install():
def installHeaders(extraHeaders=None):
""" Install the files needed to build out-of-tree kernel modules. """
extras = [
extras = ["drivers/md/",
"net/mac80211",
"drivers/media/i2c/",
"drivers/media/usb/dvb-usb",
"drivers/media/dvb-frontends",
"drivers/media/tuners",
"drivers/media/platform"]
......@@ -224,12 +226,13 @@ def installHeaders(extraHeaders=None):
shelltools.system(find_cmd)
shelltools.system("pwd")
# Install additional headers
for headers in extras:
if not os.path.exists("{0}/{1}".format(destination, headers)):
shelltools.system("mkdir -p {0}/{1}".format(destination, headers))
shelltools.system("pwd")
shelltools.system("cp -a {0}/*.h {1}/{2}".format(headers, destination, headers))
# Install remaining headers
shelltools.system("cp -a {0} {1}".format(" ".join(pruned), destination))
......@@ -246,6 +249,9 @@ def installHeaders(extraHeaders=None):
# Copy Modules.symvers and System.map
shutil.copy("Module.symvers", "{}/".format(destination))
shutil.copy("System.map", "{}/".format(destination))
shutil.copy("Kbuild", "{}/".format(destination))
shutil.copy("Kconfig", "{}/".format(destination))
shutil.copy("Makefile", "{}/".format(destination))
# Copy .config file which will be needed by some external modules
shutil.copy(".config", "{}/".format(destination))
......@@ -254,7 +260,6 @@ def installHeaders(extraHeaders=None):
inarytools.dosym("/{}".format(headersDirectoryName), "/lib/modules/{}-sulinos/build".format(suffix))
inarytools.dosym("build", "/lib/modules/{}-sulinos/source".format(suffix))
def installLibcHeaders(excludes=None):
headers_tmp = os.path.join(get.installDIR(), 'tmp-headers')
headers_dir = os.path.join(get.installDIR(), 'usr/include')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment