update linux kernel 6.7.6 (#3371)

* update kernel

* update elf dep

* add patch deps

* add zstd deps

* add zstd

* enable patch

* fix linux
pull/3478/head
ruki 9 months ago committed by GitHub
parent ee98e4b7cd
commit c8d53b8484
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/e/elfutils/xmake.lua
  2. 11
      packages/l/linux-headers/xmake.lua
  3. 6
      packages/l/linux-tools/modules/bpftool.lua
  4. 4
      packages/l/linux-tools/xmake.lua

@ -15,7 +15,7 @@ package("elfutils")
add_configs("libdw", {description = "Enable libdw", default = true, type = "boolean"})
add_configs("libasm", {description = "Enable libasm", default = false, type = "boolean"})
add_deps("m4", "zlib")
add_deps("m4", "zstd", "zlib")
if is_plat("android") then
add_deps("libintl", "argp-standalone")
end

@ -10,12 +10,13 @@ package("linux-headers")
{version = function (version)
return "v" .. version:major() .. ".x/linux-" .. version
end})
add_versions("4.20.9", "b5de28fd594a01edacd06e53491ad0890293e5fbf98329346426cf6030ef1ea6")
add_versions("5.0.8", "11908044e8cce1e093141f8da594708d45d05d0381676ae9aa3d8aeaf7c85435")
add_versions("5.9.16", "b0d7abae88e5f91893627c645e680a95c818defd1b4fcaf3e2afb4b2b6b4ab86")
add_versions("4.20.9", "b5de28fd594a01edacd06e53491ad0890293e5fbf98329346426cf6030ef1ea6")
add_versions("5.0.8", "11908044e8cce1e093141f8da594708d45d05d0381676ae9aa3d8aeaf7c85435")
add_versions("5.9.16", "b0d7abae88e5f91893627c645e680a95c818defd1b4fcaf3e2afb4b2b6b4ab86")
add_versions("5.10.46", "569122a39c6b325befb9ac1c07da0c53e6363b3baacd82081d131b06c1dc1415")
add_versions("5.16.9", "1660e7228ec299c187c19739d115ded97f6b1be05a24986c4c443e7c5e8b744f")
add_versions("5.15", "57b2cf6991910e3b67a1b3490022e8a0674b6965c74c12da1e99d138d1991ee8")
add_versions("5.16.9", "1660e7228ec299c187c19739d115ded97f6b1be05a24986c4c443e7c5e8b744f")
add_versions("5.15", "57b2cf6991910e3b67a1b3490022e8a0674b6965c74c12da1e99d138d1991ee8")
add_versions("6.7.6", "e489ec0e1370d089b446d565aded7a698093d2b7c4122a18f21edb6ef93d37d3")
add_configs("driver_modules", {description = "Enable driver modules files.", default = false, type = "boolean"})

@ -1,5 +1,5 @@
function load(package)
package:add("deps", "libcap", "libelf", "zlib", {host = true})
package:add("deps", "libcap", "elfutils", "zlib", {host = true})
package:add("deps", "python 3.x", {kind = "binary"})
package:addenv("PATH", "sbin")
end
@ -8,7 +8,7 @@ function install(package)
local cflags = {}
local ldflags = {}
for _, dep in ipairs(package:orderdeps()) do
for _, dep in ipairs(package:librarydeps()) do
local fetchinfo = dep:fetch()
if fetchinfo then
for _, includedir in ipairs(fetchinfo.includedirs or fetchinfo.sysincludedirs) do
@ -30,6 +30,8 @@ function install(package)
os.cd("tools/bpf/bpftool")
io.replace("Makefile", "prefix ?= /usr/local", "prefix ?= " .. package:installdir(), {plain = true})
io.replace("Makefile", "bash_compdir ?= /usr/share", "bash_compdir ?= " .. package:installdir("share"), {plain = true})
io.replace("Makefile", "-lelf -lz", "-lelf -lzstd -lz", {plain = true})
io.replace("Makefile", "$(Q)$(LLVM_STRIP) -g $@", "echo skip", {plain = true})
import("package.tools.make").build(package, configs)
os.vrunv("make", table.join("install", configs))
end

@ -14,9 +14,13 @@ package("linux-tools")
add_versions("5.0.8", "11908044e8cce1e093141f8da594708d45d05d0381676ae9aa3d8aeaf7c85435")
add_versions("5.9.16", "b0d7abae88e5f91893627c645e680a95c818defd1b4fcaf3e2afb4b2b6b4ab86")
add_versions("5.16.9", "1660e7228ec299c187c19739d115ded97f6b1be05a24986c4c443e7c5e8b744f")
add_versions("6.7.6", "e489ec0e1370d089b446d565aded7a698093d2b7c4122a18f21edb6ef93d37d3")
add_configs("bpftool", { description = "Enable bpftool.", default = true, type = "boolean"})
add_patches("6.7.6", "https://cdn.kernel.org/pub/linux/kernel/v6.x/patch-6.7.6.xz",
"a394326aa325f8a930a4ce33c69ba7b8b454aef1107a4d3c2a8ae12908615fc4", {reverse = true})
local modules = {"bpftool"}
on_load(function (package)

Loading…
Cancel
Save