diff options
author | Adrian Calianu <adrian.calianu@enea.com> | 2018-03-13 09:37:50 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2018-04-23 10:47:26 +0200 |
commit | 6aacc850dc8f1a5b734e9d8a7ed0530f1dfab4a0 (patch) | |
tree | 2494b075c86cfebd8befd061586d21a949648432 /recipes-bsp/grub/_ignore_grub-efi_2.02.bbappend | |
parent | 376187aa7c1ffbda2c8c292110e434854f5ffa14 (diff) | |
download | meta-enea-bsp-common-6aacc850dc8f1a5b734e9d8a7ed0530f1dfab4a0.tar.gz |
grub: upgraded grub version
recipes are backported from master branch and updated to
build for aarch64 and generate startup.nsh.
It is required to generate single VNF image for qemuarm64.
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
Signed-off-by: Martin Borg <martin.borg@enea.com>
Diffstat (limited to 'recipes-bsp/grub/_ignore_grub-efi_2.02.bbappend')
-rw-r--r-- | recipes-bsp/grub/_ignore_grub-efi_2.02.bbappend | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-bsp/grub/_ignore_grub-efi_2.02.bbappend b/recipes-bsp/grub/_ignore_grub-efi_2.02.bbappend new file mode 100644 index 0000000..630cc68 --- /dev/null +++ b/recipes-bsp/grub/_ignore_grub-efi_2.02.bbappend | |||
@@ -0,0 +1,23 @@ | |||
1 | # because entire grub folder was taken from newer branch(rocko) we are using a separate bbappend | ||
2 | # just to facilitate the move of changes(keep only this file) when switch to new branch | ||
3 | # | ||
4 | # Determine the target arch for the grub modules | ||
5 | python __anonymous_prepend () { | ||
6 | import re | ||
7 | target = d.getVar('TARGET_ARCH') | ||
8 | if target == "x86_64": | ||
9 | grubtarget = 'x86_64' | ||
10 | grubimage = "grub-efi-bootx64.efi" | ||
11 | elif re.match('i.86', target): | ||
12 | grubtarget = 'i386' | ||
13 | grubimage = "grub-efi-bootia32.efi" | ||
14 | elif re.match('aarch64', target): | ||
15 | grubtarget = 'arm64' | ||
16 | grubimage = "grub-efi-bootaa64.efi" | ||
17 | else: | ||
18 | raise bb.parse.SkipPackage("grub-efi is incompatible with target %s" % target) | ||
19 | d.setVar("GRUB_TARGET", grubtarget) | ||
20 | d.setVar("GRUB_IMAGE", grubimage) | ||
21 | } | ||
22 | |||
23 | COMPATIBLE_HOST = "aarch64-enea-linux" | ||