add linux-headers

pull/262/head
ruki 4 years ago
parent fefc80f2fa
commit d5e700ca61
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 16
      packages/l/linux-headers/xmake.lua

@ -0,0 +1,16 @@
package("linux-headers")
set_homepage("https://kernel.org/")
set_description("Header files of the Linux kernel")
set_license("GPL-2.0-only")
add_urls("https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-$(version).tar.gz")
add_versions("4.4.80", "291d844619b5e7c43bd5aa0b2c286274fc5ffe31494ba475f167a21157e88186")
on_install("linux", function (package)
os.vrunv("make", {"headers_install", "INSTALL_HDR_PATH=" .. package:installdir()})
end)
on_test(function (package)
assert(package:has_cincludes("linux/version.h"))
end)
Loading…
Cancel
Save