Sfoglia il codice sorgente

libbpf: relax Android NDK version restriction (#7991)

apocelipes 3 mesi fa
parent
commit
a46989ffb7
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      packages/l/libbpf/xmake.lua

+ 1 - 2
packages/l/libbpf/xmake.lua

@@ -14,11 +14,10 @@ package("libbpf")
         on_check("android", function (package)
             local ndk = package:toolchain("ndk")
             local ndk_sdkver = ndk:config("ndk_sdkver")
-            local ndkver = ndk:config("ndkver")
-            assert(ndkver and tonumber(ndkver) < 26, "package(libbpf): need ndk version < 26 for android")
             if package:version() and package:version():lt("0.5") then
                 assert(ndk_sdkver and tonumber(ndk_sdkver) >= 23, "package(libbpf) dep(libelf): need ndk api level >= 23 for android")
             else
+                -- elfutils needs api level <= 23
                 assert(ndk_sdkver and tonumber(ndk_sdkver) == 23, "package(libbpf) dep(elfutils): need ndk api level == 23 for android")
             end
         end)