diff mbox

[1/1] builddeb: add arm64 in the supported architectures

Message ID 1380882711-31929-1-git-send-email-fathi.boudra@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Fathi Boudra Oct. 4, 2013, 10:31 a.m. UTC
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
---
 scripts/package/builddeb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Comments

Ben Hutchings Oct. 6, 2013, 4:22 p.m. UTC | #1
On Fri, 2013-10-04 at 13:31 +0300, Fathi Boudra wrote:
> Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
> ---
>  scripts/package/builddeb | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 90e521f..f76be3a 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -43,7 +43,11 @@ create_package() {
>  	mips*)
>  		debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;;
>  	arm*)
> -		debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;;
> +		if grep -q '^CONFIG_ARM64=y' $KCONFIG_CONFIG ; then
> +			debarch=arm64
> +		else
> +			debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el)
> +		fi ;;
>  	*)
>  		echo "" >&2
>  		echo "** ** **  WARNING  ** ** **" >&2

As arm64 is a separate architecture in terms of kernel source, I think
it would make more sense to add an arm64 case above the arm* case.

Ben.
diff mbox

Patch

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 90e521f..f76be3a 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -43,7 +43,11 @@  create_package() {
 	mips*)
 		debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;;
 	arm*)
-		debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;;
+		if grep -q '^CONFIG_ARM64=y' $KCONFIG_CONFIG ; then
+			debarch=arm64
+		else
+			debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el)
+		fi ;;
 	*)
 		echo "" >&2
 		echo "** ** **  WARNING  ** ** **" >&2