From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aZ6YJ-0007sh-V6 for mharc-grub-devel@gnu.org; Thu, 25 Feb 2016 19:46:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ6YH-0007s2-6G for grub-devel@gnu.org; Thu, 25 Feb 2016 19:46:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZ6YD-0004yR-Ve for grub-devel@gnu.org; Thu, 25 Feb 2016 19:46:37 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:59967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZ6YD-0004yL-LV for grub-devel@gnu.org; Thu, 25 Feb 2016 19:46:33 -0500 Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 4B937A80C6 for ; Fri, 26 Feb 2016 01:46:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id WXTgxFeAkqRh for ; Fri, 26 Feb 2016 01:46:29 +0100 (CET) X-Originating-IP: 213.152.161.149 Received: from [10.4.18.216] (unknown [213.152.161.149]) (Authenticated sender: dev@dettori.io) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 7FA41A80AA for ; Fri, 26 Feb 2016 01:46:28 +0100 (CET) To: grub-devel@gnu.org From: Antonello Dettori Subject: [PATCH] coreboot: fix "make default_payload.elf" Message-ID: <56CFA06D.6050808@dettori.io> Date: Fri, 26 Feb 2016 00:46:37 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080705080408040904070807" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.195 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2016 00:46:38 -0000 This is a multi-part message in MIME format. --------------080705080408040904070807 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit When building grub as a payload for coreboot the compiling stops at this line: "rm: cannot remove 'default_payload.elf': No such file or directory" (Full log ) It seems like it's trying to delete default_payload.elf before it is even created without any apparent reason or explanation. Tested, "make default_payload.elf" now works and the final executable works as expected. Signed-off-by: Antonello Dettori --- Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 288e621..82154d8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -410,7 +410,6 @@ bootcheck: $(BOOTCHECKS) if COND_i386_coreboot default_payload.elf: grub-mkstandalone grub-mkimage FORCE - rm $@ pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o $@ --modules='ahci pata ehci uhci ohci usb_keyboard usbms part_msdos ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --install-modules='ls linux search configfile normal cbtime cbls memrw iorw minicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain test serial multiboot cbmemc linux16 gzio echo help syslinuxcfg xnu $(shell cat grub-core/fs.lst) password_pbkdf2 $(EXTRA_PAYLOAD_MODULES)' --fonts= --themes= --locales= -d grub-core/ /boot/grub/grub.cfg=$(srcdir)/coreboot.cfg endif --------------080705080408040904070807 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit When building grub as a payload for coreboot the compiling stops at this line:
"rm: cannot remove 'default_payload.elf': No such file or directory" (Full log)
It seems like it's trying to delete default_payload.elf before it is even created without any apparent reason or explanation.

Tested, "make default_payload.elf" now works and the final executable works as expected.

Signed-off-by: Antonello Dettori <dev@dettori.io>

---

 Makefile.am | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 288e621..82154d8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -410,7 +410,6 @@ bootcheck: $(BOOTCHECKS)
 
 if COND_i386_coreboot
 default_payload.elf: grub-mkstandalone grub-mkimage FORCE
-    rm $@
     pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o $@ --modules='ahci pata ehci uhci ohci usb_keyboard usbms part_msdos ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --install-modules='ls linux search configfile normal cbtime cbls memrw iorw minicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain test serial multiboot cbmemc linux16 gzio echo help syslinuxcfg xnu $(shell cat grub-core/fs.lst) password_pbkdf2 $(EXTRA_PAYLOAD_MODULES)' --fonts= --themes= --locales= -d grub-core/ /boot/grub/grub.cfg=$(srcdir)/coreboot.cfg
 endif
--------------080705080408040904070807--