mdadm: Add IMSM support
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 27 Aug 2010 15:26:52 +0000 (17:26 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Mon, 17 Jan 2011 14:47:42 +0000 (15:47 +0100)
gen_compile.sh

index 1c3bf976e7ecf53363f2c5af5bafc89d36c43a03..bccbcdc7e58753ecbc6abd8aef4e8809b84cbca8 100755 (executable)
@@ -476,15 +476,16 @@ compile_mdadm() {
                sed -i "s/^# LDFLAGS = -static/LDFLAGS = -static/" Makefile
 
                print_info 1 'mdadm: >> Compiling...'
-                       compile_generic 'mdadm' utils
+                       compile_generic 'mdadm mdmon' utils
 
                mkdir -p "${TEMP}/mdadm/sbin"
                install -m 0755 -s mdadm "${TEMP}/mdadm/sbin/mdadm"
+               install -m 0755 -s mdmon "${TEMP}/mdadm/sbin/mdmon"
                print_info 1 '      >> Copying to bincache...'
                cd "${TEMP}/mdadm"
-               strip "sbin/mdadm" ||
-                       gen_die 'Could not strip mdadm!'
-               /bin/tar -cjf "${MDADM_BINCACHE}" sbin/mdadm ||
+               strip "sbin/mdadm" "sbin/mdmon" ||
+                       gen_die 'Could not strip mdadm binaries!'
+               /bin/tar -cjf "${MDADM_BINCACHE}" sbin/mdadm sbin/mdmon ||
                        gen_die 'Could not create binary cache'
 
                cd "${TEMP}"