ntfs-3g support
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$MYARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export MYARCH=i486 ;;
|
||||
arm*) export MYARCH=arm ;;
|
||||
# Unless $MYARCH is already set, use uname -m for all other archs:
|
||||
*) export MYARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
ln busybox-$MYARCH ./busybox
|
||||
chmod a+x ./busybox
|
||||
@@ -35,13 +35,14 @@ copy_including_deps()
|
||||
rm -Rf $INITRAMFS
|
||||
mkdir -p $INITRAMFS/{bin,dev,etc,lib,lib64,mnt,proc,root,run,sbin,sys,tmp,usr,var/log}
|
||||
|
||||
rm busybox/busybox
|
||||
cd busybox
|
||||
cd static
|
||||
./update
|
||||
cd ..
|
||||
|
||||
cp busybox/busybox $INITRAMFS/bin
|
||||
busybox/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do
|
||||
cp static/{busybox,mount.ntfs-3g} $INITRAMFS/bin
|
||||
chmod a+x $INITRAMFS/bin/{busybox,mount.ntfs-3g}
|
||||
|
||||
$INITRAMFS/bin/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do
|
||||
for TOOL in $LINE; do
|
||||
ln -s busybox $INITRAMFS/bin/$TOOL
|
||||
ln -s ../bin/busybox $INITRAMFS/sbin/$TOOL
|
||||
|
||||
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# How to rebuild these static binaries:
|
||||
# - using buildroot scripts <buildroot.uclibc.org>
|
||||
# - unpack buildroot in /usr/src
|
||||
# - copy busybox config (generated by busybox bbconfig) to /usr/src/buildroot-source/package/busybox/busybox-1.20.x.config
|
||||
# - cd /usr/src/buildroot-sources
|
||||
# - make menuconfig
|
||||
# - configure buildroot to compile static libraries, set target processor architecture, and so on
|
||||
# - some manual tweaking is necessary so buildroot properly compiles ntfs-3g driver, sorry
|
||||
# - make
|
||||
# - find static binaries in /usr/src/buildroot-sources/output/target/bin/ etc
|
||||
#
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$MYARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) export MYARCH=i486 ;;
|
||||
arm*) export MYARCH=arm ;;
|
||||
# Unless $MYARCH is already set, use uname -m for all other archs:
|
||||
*) export MYARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
ln -f busybox-$MYARCH ./busybox
|
||||
ln -f mount.ntfs-3g-$MYARCH ./ntfs-3g
|
||||
Reference in New Issue
Block a user