]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - DMSETUP/build.txt
docker compose up
[Ventoy.git] / DMSETUP / build.txt
index 6585e599f77b7e6d959db32eb473ff431d181a58..36e37a0b7c99e328d5d2cb579993fd5feb4dc246 100644 (file)
@@ -5,7 +5,7 @@ use an old version of dmsetup
 http://vault.centos.org/5.3/os/SRPMS/device-mapper-1.02.28-2.el5.src.rpm\r
 https://www.fefe.de/dietlibc/dietlibc-0.34.tar.xz\r
 \r
-======== Build Envrioment ======== \r
+======== Build Environment ======== \r
 build for 32bit, static linked with dietlibc\r
 1. install centos 6.10 i386 with CentOS-6.10-i386-bin-DVD1.iso\r
 2. yum install gcc kernel-devel package\r
@@ -55,6 +55,16 @@ build for 32bit, static linked with dietlibc
 6. get dmsetup/dmsetup.static as the dmsetupaa64 binary file\r
 \r
 \r
+======================== Build for mips64 dmsetup =========================\r
+1. extract device mapper source code\r
+2. ./configure CC="mips64el-linux-musl-gcc -mips64r2 -mabi=64" --target=mips --host=x86_64-linux-gnu --disable-nls  --disable-selinux --disable-shared  --enable-static_link\r
+3. modify include/configure.h file\r
+   --- delete the line with "#define malloc rpl_malloc"\r
+4. make\r
+5. mips64el-linux-musl-strip dmsetup/dmsetup.static\r
+6. get dmsetup/dmsetup.static as the dmsetupm64e binary file\r
+\r
+\r
 \r
 \r
 \r