ifeq ($(BR2_TARGET_GRUB_SPLASH),y)
define GRUB_INSTALL_SPLASH
- cp boot/grub/splash.xpm.gz $(TARGET_DIR)/boot/grub/
+ $(INSTALL) -D -m 0644 boot/grub/splash.xpm.gz $(TARGET_DIR)/boot/grub/splash.xpm.gz
endef
else
define GRUB_INSTALL_SPLASH
# of a disk or disk image.
define GRUB_INSTALL_TARGET_CMDS
- install -m 0755 -D $(@D)/grub/grub $(HOST_DIR)/sbin/grub
- mkdir -p $(TARGET_DIR)/boot/grub
- cp $(@D)/stage1/stage1 $(TARGET_DIR)/boot/grub
+ $(INSTALL) -D -m 0755 $(@D)/grub/grub $(HOST_DIR)/sbin/grub
+ $(INSTALL) -D -m 0755 $(@D)/stage1/stage1 $(TARGET_DIR)/boot/grub/stage1
for f in $(GRUB_STAGE_1_5_TO_INSTALL) ; do \
- cp $(@D)/stage2/$${f}_stage1_5 $(TARGET_DIR)/boot/grub ; \
+ $(INSTALL) -D -m 0755 $(@D)/stage2/$${f}_stage1_5 \
+ $(TARGET_DIR)/boot/grub/$${f}_stage1_5 ; \
done
- cp $(@D)/stage2/stage2 $(TARGET_DIR)/boot/grub
- cp boot/grub/menu.lst $(TARGET_DIR)/boot/grub
+ $(INSTALL) -D -m 0644 $(@D)/stage2/stage2 $(TARGET_DIR)/boot/grub/stage2
+ $(INSTALL) -D -m 0644 boot/grub/menu.lst $(TARGET_DIR)/boot/grub/menu.lst
$(GRUB_INSTALL_SPLASH)
endef