Commit 97d82f9a authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added support for Go bootstrap

parent 2720a64f
...@@ -430,12 +430,6 @@ rm /lib/systemd/system/build ...@@ -430,12 +430,6 @@ rm /lib/systemd/system/build
</exec> </exec>
</target> </target>
<target name="setup-go-bootstrap">
<exec executable="mv" failonerror="true">
<arg line="-v ${builddir}/go-linux-${GOARCH}-bootstrap.tbz ${sysdir}/packages/go"/>
</exec>
</target>
<target name="build-image"> <target name="build-image">
<fail unless="BOARD" message="Correct machine type must be specified"/> <fail unless="BOARD" message="Correct machine type must be specified"/>
<antcall target="mount"/> <antcall target="mount"/>
...@@ -444,6 +438,7 @@ rm /lib/systemd/system/build ...@@ -444,6 +438,7 @@ rm /lib/systemd/system/build
<antcall target="make-secondary"/> <antcall target="make-secondary"/>
<antcall target="mount-secondary"/> <antcall target="mount-secondary"/>
<antcall target="fill-secondary"/> <antcall target="fill-secondary"/>
<antcall target="setup-go-bootstrap"/>
<antcall target="unmount"/> <antcall target="unmount"/>
<antcall target="run-system-with-secondary-${BOARD}"/> <antcall target="run-system-with-secondary-${BOARD}"/>
<antcall target="check-build-success"/> <antcall target="check-build-success"/>
...@@ -522,6 +517,13 @@ rm /lib/systemd/system/build ...@@ -522,6 +517,13 @@ rm /lib/systemd/system/build
</exec> </exec>
</target> </target>
<target name="setup-go-bootstrap" if="GO_BOOTSTRAP">
<ant antfile="packages/go/build.xml" target="go-bootstrap"/>
<exec executable="mv" failonerror="true">
<arg line="-v ${builddir}/go-linux-${GOARCH}-bootstrap.tbz ${sysdir}/packages/go"/>
</exec>
</target>
<target name="build-image-www"> <target name="build-image-www">
<fail unless="BOARD" message="Correct machine type must be specified"/> <fail unless="BOARD" message="Correct machine type must be specified"/>
<antcall target="mount"/> <antcall target="mount"/>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment