Browse Source

feat: use prebuilt glibc

chiichen 4 months ago
parent
commit
25bc04293a
2 changed files with 25 additions and 27 deletions
  1. 0 27
      user/dadk/config/glibc-2.39.9.dadk
  2. 25 0
      user/dadk/config/glibc-2.40.9.dadk

+ 0 - 27
user/dadk/config/glibc-2.39.9.dadk

@@ -1,27 +0,0 @@
-{
-  "name": "glibc",
-  "version": "2.39.9",
-  "description": "glibc libc",
-  "rust_target": null,
-  "task_type": {
-    "BuildFromSource": {
-      "Archive": {
-        "url": "https://github.com/DragonOS-Community/glibc-mirror/archive/refs/tags/v2.39.9-beta.3.tar.gz"
-      }
-    }
-  },
-  "depends": [],
-  "build": {
-    "build_command": "bash dragonos.sh && mkdir -p $DADK_CURRENT_BUILD_DIR/lib64 && cp $DADK_CURRENT_BUILD_DIR/lib/* $DADK_CURRENT_BUILD_DIR/lib64"
-  },
-  "install": {
-    "in_dragonos_path": "/"
-  },
-  "clean": {
-    "clean_command": "cd build & make clean"
-  },
-  "envs": [],
-  "build_once": true,
-
-  "install_once": true
-}

+ 25 - 0
user/dadk/config/glibc-2.40.9.dadk

@@ -0,0 +1,25 @@
+{
+  "name": "glibc",
+  "version": "2.40.9",
+  "description": "glibc",
+  "rust_target": null,
+  "task_type": {
+    "InstallFromPrebuilt": {
+      "Archive": {
+        "url": "https://github.com/DragonOS-Community/glibc-cross/releases/download/v0.3.1/glibc-2.40.9000-x86_64-linux-gnu.tar.gz"
+      }
+    }
+  },
+  "depends": [],
+  "build": {
+
+  },
+  "install": {
+    "in_dragonos_path": "/"
+  },
+  "clean": {
+    "clean_command": null
+  },
+  "envs": [],
+  "target_arch": ["x86_64"]
+}