From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 6 Dec 2018 21:51:54 +0100 Subject: [Buildroot] [PATCH] linux: ensure images/ exist before creatign files there In-Reply-To: <20181203191219.18998-1-yann.morin.1998@free.fr> References: <20181203191219.18998-1-yann.morin.1998@free.fr> Message-ID: <20181206215154.6587226e@windsurf> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Mon, 3 Dec 2018 20:12:19 +0100, Yann E. MORIN wrote: > When using an initramfs, on the first-pass build, we create a dummy cpio > so that the build succeeeds. The real cpio will come later, and we'll do > a second-pass build to use the actual cpio. > > However, when we touch that dummy cpio, the images/ directory may not > yet exist, since commit d0f4f95e39 (Makefile: rework main directory > creation logic) removed its creation at the begining of the build, to > only at the moment we need it, i.e. during the *_INSTALL_IMAGES_CMDS > steps. > > However, the linux build is not a _INSTALL_IMAGES_CMDS step, so there is > no guarantee that images/ already exist at that time. > > Fix that by explicitly creating images/ before touching the dummy cpio. > > Reported-by: Matthew Weber > Signed-off-by: "Yann E. MORIN" > Cc: Matthew Weber > Cc: Thomas Petazzoni > --- > linux/linux.mk | 1 + > 1 file changed, 1 insertion(+) Applied to master, thanks. Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com