improve linux-headers

pull/748/head
ruki 3 years ago
parent 66b5950b24
commit 2cb722f9c0
No known key found for this signature in database
GPG Key ID: D7C5BF5691071C8D
  1. 10
      packages/l/linux-headers/xmake.lua

@ -28,11 +28,11 @@ package("linux-headers")
on_install("linux", function (package)
import("package.tools.make")
if package:config("driver_modules") then
local kernelsrc = package:installdir("kernelsrc")
os.cp("*", kernelsrc)
make.make(package, {"allyesconfig", "O=" .. package:installdir()}, {curdir = kernelsrc})
make.make(package, {"modules_prepare", "O=" .. package:installdir()}, {curdir = kernelsrc})
os.rm(path.join(kernelsrc, "source"))
local installdir = package:installdir()
os.cp("*", installdir)
make.make(package, {"allyesconfig"}, {curdir = installdir})
make.make(package, {"modules_prepare"}, {curdir = installdir})
os.rm(path.join(installdir, "source"))
else
os.vrunv("make", {"headers_install", "INSTALL_HDR_PATH=" .. package:installdir()})
end

Loading…
Cancel
Save