X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/4707b76bb22e1ca60893bb6e9e79ac8331bf68b3..refs/heads/master:/DMSETUP/build.txt diff --git a/DMSETUP/build.txt b/DMSETUP/build.txt index 6585e59..36e37a0 100644 --- a/DMSETUP/build.txt +++ b/DMSETUP/build.txt @@ -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 https://www.fefe.de/dietlibc/dietlibc-0.34.tar.xz -======== Build Envrioment ======== +======== Build Environment ======== build for 32bit, static linked with dietlibc 1. install centos 6.10 i386 with CentOS-6.10-i386-bin-DVD1.iso 2. yum install gcc kernel-devel package @@ -55,6 +55,16 @@ build for 32bit, static linked with dietlibc 6. get dmsetup/dmsetup.static as the dmsetupaa64 binary file +======================== Build for mips64 dmsetup ========================= +1. extract device mapper source code +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 +3. modify include/configure.h file + --- delete the line with "#define malloc rpl_malloc" +4. make +5. mips64el-linux-musl-strip dmsetup/dmsetup.static +6. get dmsetup/dmsetup.static as the dmsetupm64e binary file + +