x86: image: cleanup before creating image
There can be some leftovers from other image recipes, if the same directory names are used and multiply image types are selected. Therefore remove directories used in the recipe, before contents for the image are prepared. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
This commit is contained in:
parent
1d8f21e3a0
commit
48873ace4e
|
|
@ -60,6 +60,7 @@ ifneq ($(CONFIG_GRUB_IMAGES),)
|
||||||
|
|
||||||
define Image/Build/grub2
|
define Image/Build/grub2
|
||||||
# left here because the image builder doesnt need these
|
# left here because the image builder doesnt need these
|
||||||
|
rm -fR $(KDIR)/root.grub $(KDIR)/grub2
|
||||||
$(INSTALL_DIR) $(KDIR)/root.grub/boot/grub $(KDIR)/grub2
|
$(INSTALL_DIR) $(KDIR)/root.grub/boot/grub $(KDIR)/grub2
|
||||||
$(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz
|
$(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz
|
||||||
grub-mkimage \
|
grub-mkimage \
|
||||||
|
|
@ -93,6 +94,7 @@ ifneq ($(CONFIG_GRUB_IMAGES),)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Image/Build/iso
|
define Image/Build/iso
|
||||||
|
rm -fR $(KDIR)/root.grub $(KDIR)/grub2
|
||||||
$(INSTALL_DIR) $(KDIR)/root.grub/boot/grub $(KDIR)/grub2
|
$(INSTALL_DIR) $(KDIR)/root.grub/boot/grub $(KDIR)/grub2
|
||||||
$(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz
|
$(CP) $(KDIR)/bzImage $(KDIR)/root.grub/boot/vmlinuz
|
||||||
grub-mkimage \
|
grub-mkimage \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue