We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccaff5c commit 96aa24cCopy full SHA for 96aa24c
1 file changed
scripts/rimage-build.sh
@@ -1,6 +1,28 @@
1
-#!/bin/sh
+#!/bin/bash
2
3
./autogen.sh
4
-./configure --enable-rimage
5
-make
6
+pwd=`pwd`
+
7
+# parse the args
8
+for args in $@
9
+do
10
+ if [[ "$args" == "-l" ]]
11
+ then
12
+ BUILD_LOCAL=1
13
+ fi
14
+done
15
16
+# make sure rimage is built and aligned with code
17
+if [[ "x$BUILD_LOCAL" == "x" ]]
18
+then
19
+ ./configure --enable-rimage
20
+ make
21
+ sudo make install
22
+else
23
+ echo "BUILD in local folder!"
24
+ rm -rf $pwd/local/
25
+ ./configure --enable-rimage --prefix=$pwd/local
26
27
+ make install
28
+fi
0 commit comments