Patchwork [kteam-tools] git-build-kernel: armhf- and armel- chroot support

login
register
mail settings
Submitter Kamal Mostafa
Date Aug. 6, 2013, 10:14 p.m.
Message ID <1375827272-19710-1-git-send-email-kamal@canonical.com>
Download mbox | patch
Permalink /patch/265254/
State New
Headers show

Comments

Kamal Mostafa - Aug. 6, 2013, 10:14 p.m.
Enables armhf and armel builds, e.g.:

  git push buildhost master:armhf-binary-generic

Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 git-build-kernel/post-receive | 2 ++
 1 file changed, 2 insertions(+)
Tim Gardner - Aug. 8, 2013, 12:27 p.m.

Steve Conklin - Aug. 12, 2013, 2:52 p.m.
On 08/06/2013 05:14 PM, Kamal Mostafa wrote:
> Enables armhf and armel builds, e.g.:
> 
>   git push buildhost master:armhf-binary-generic
> 
> Signed-off-by: Kamal Mostafa <kamal@canonical.com>
> ---
>  git-build-kernel/post-receive | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/git-build-kernel/post-receive b/git-build-kernel/post-receive
> index 89c88b5..2295528 100755
> --- a/git-build-kernel/post-receive
> +++ b/git-build-kernel/post-receive
> @@ -34,6 +34,8 @@ do
>  	arch=amd64
>  	[ "${ref_p2%%-*}" = "amd64" ] && { arch=amd64; ref_p2="${ref_p2#*-}"; }
>  	[ "${ref_p2%%-*}" = "i386" ] && { arch=i386; ref_p2="${ref_p2#*-}"; }
> +	[ "${ref_p2%%-*}" = "armhf" ] && { arch=armhf; ref_p2="${ref_p2#*-}"; }
> +	[ "${ref_p2%%-*}" = "armel" ] && { arch=armel; ref_p2="${ref_p2#*-}"; }
>  
>  	### handle predefined branch or refs targets
>  	### e.g. refs/heads/binary  (an actual branch named "binary")
>

Patch

diff --git a/git-build-kernel/post-receive b/git-build-kernel/post-receive
index 89c88b5..2295528 100755
--- a/git-build-kernel/post-receive
+++ b/git-build-kernel/post-receive
@@ -34,6 +34,8 @@  do
 	arch=amd64
 	[ "${ref_p2%%-*}" = "amd64" ] && { arch=amd64; ref_p2="${ref_p2#*-}"; }
 	[ "${ref_p2%%-*}" = "i386" ] && { arch=i386; ref_p2="${ref_p2#*-}"; }
+	[ "${ref_p2%%-*}" = "armhf" ] && { arch=armhf; ref_p2="${ref_p2#*-}"; }
+	[ "${ref_p2%%-*}" = "armel" ] && { arch=armel; ref_p2="${ref_p2#*-}"; }
 
 	### handle predefined branch or refs targets
 	### e.g. refs/heads/binary  (an actual branch named "binary")