mdadm: build static binary for use with initrd
This commit is contained in:
parent
311b3f194c
commit
acdc85a475
@ -4,6 +4,7 @@ drwxr-xr-x root/root lib/udev/rules.d/
|
||||
-rw-r--r-- root/root lib/udev/rules.d/64-md-raid.rules
|
||||
drwxr-xr-x root/root sbin/
|
||||
-rwxr-xr-x root/root sbin/mdadm
|
||||
-rwxr-xr-x root/root sbin/mdadm.static
|
||||
-rwxr-xr-x root/root sbin/mdmon
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/man/
|
||||
|
@ -4,12 +4,14 @@
|
||||
|
||||
name=mdadm
|
||||
version=3.0
|
||||
release=1
|
||||
release=2
|
||||
source=(http://www.kernel.org/pub/linux/utils/raid/$name/$name-$version.tar.gz
|
||||
$name-$version-vol_id.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -p1 -i $SRC/$name-$version-vol_id.patch
|
||||
make CXFLAGS="$CFLAGS" DESTDIR=$PKG MANDIR=/usr/man install
|
||||
make CXFLAGS="$CFLAGS" all mdadm.static
|
||||
make DESTDIR=$PKG MANDIR=/usr/man install
|
||||
install -m755 mdadm.static $PKG/sbin
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user