summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorFathi Boudra <fabo@debian.org>2015-02-03 22:22:30 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-02-04 10:16:02 +0200
commit9d95afb9f6f1ae64a2e3fcacf4df2839a29cde7c (patch)
tree13fdcaddb10d93085b2e615080e28b0af81df247 /functions
parente51315ae1e8a43c30abbd79c33e75229a3d06309 (diff)
downloadvyos-live-build-9d95afb9f6f1ae64a2e3fcacf4df2839a29cde7c.tar.gz
vyos-live-build-9d95afb9f6f1ae64a2e3fcacf4df2839a29cde7c.zip
Adding linux flavours for arm64/armhf architectures.
Signed-off-by: Fathi Boudra <fabo@debian.org>
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh26
1 files changed, 23 insertions, 3 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index f6b7f6b88..d327dbfd5 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -506,6 +506,18 @@ Set_defaults ()
# Setting linux flavour string
case "${LB_ARCHITECTURES}" in
+ arm64)
+ case "${LB_MODE}" in
+ ubuntu)
+ LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-generic}"
+ ;;
+
+ *)
+ LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-arm64}"
+ ;;
+ esac
+ ;;
+
armel)
case "${LB_MODE}" in
ubuntu)
@@ -520,9 +532,17 @@ Set_defaults ()
;;
armhf)
- # armhf will have special images: one rootfs image and many additional kernel images.
- # therefore we default to all available armhf flavours
- LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-armmp armmp-lpae}"
+ case "${LB_MODE}" in
+ ubuntu)
+ LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-generic}"
+ ;;
+
+ *)
+ # armhf will have special images: one rootfs image and many additional kernel images.
+ # therefore we default to all available armhf flavours
+ LB_LINUX_FLAVOURS="${LB_LINUX_FLAVOURS:-armmp armmp-lpae}"
+ ;;
+ esac
;;
amd64)