diff mbox

[Yocto,1/4] grub-efi: Add to support to install grubaa64 efi

Message ID 1425397584-5154-2-git-send-email-naresh.bhat@linaro.org
State New
Headers show

Commit Message

naresh.bhat@linaro.org March 3, 2015, 3:46 p.m. UTC
Add to support to install grubaa64.efi binary for aarch64

Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
---
 meta/classes/grub-efi.bbclass |    3 +++
 1 file changed, 3 insertions(+)

Comments

naresh.bhat@linaro.org March 4, 2015, 6:53 a.m. UTC | #1
On 3 March 2015 at 23:22, Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com> wrote:
> On 3 March 2015 at 16:46, Naresh Bhat <naresh.bhat@linaro.org> wrote:
>> Add to support to install grubaa64.efi binary for aarch64
>>
>> Signed-off-by: Naresh Bhat <naresh.bhat@linaro.org>
>> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
>> ---
>>  meta/classes/grub-efi.bbclass |    3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
>> index 47bd35e..455dc8d 100644
>> --- a/meta/classes/grub-efi.bbclass
>> +++ b/meta/classes/grub-efi.bbclass
>> @@ -37,6 +37,9 @@ efi_populate() {
>>         if [ "${TARGET_ARCH}" = "x86_64" ]; then
>>                 GRUB_IMAGE="bootx64.efi"
>>         fi
>> +       if [ "${TARGET_ARCH}" = "aarch64" ]; then
>> +                GRUB_IMAGE="grubaa64.efi"
>> +        fi
>
> Assuming you're adding at least the second call to test(1) in a row
> I'd have switched the whole thing to a case statement.
Thank you very much.  That makes sense.
> This would be easier to read, fewer lines and on some shells fewer
> forks of test(1), fwiw.
Agreed. I will implement the same in my next series.
>
> thanks,
diff mbox

Patch

diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index 47bd35e..455dc8d 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -37,6 +37,9 @@  efi_populate() {
 	if [ "${TARGET_ARCH}" = "x86_64" ]; then
 		GRUB_IMAGE="bootx64.efi"
 	fi
+	if [ "${TARGET_ARCH}" = "aarch64" ]; then
+                GRUB_IMAGE="grubaa64.efi"
+        fi
 	install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} ${DEST}${EFIDIR}
 
 	install -m 0644 ${GRUBCFG} ${DEST}${EFIDIR}