+ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
+ define Image/Prepare/grub
+ # for the image builder
+ $(CP) \
+ $(STAGING_DIR)/usr/lib/grub/i386-pc/stage1 \
+ $(STAGING_DIR)/usr/lib/grub/i386-pc/stage2 \
+ $(STAGING_DIR)/usr/lib/grub/i386-pc/e2fs_stage1_5 \
+ $(KDIR)/
+ $(CP) $(STAGING_DIR)/usr/sbin/grub $(STAGING_DIR)/bin
+ endef
+endif
+
+define Image/Prepare
+ $(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage
+ $(call Image/Prepare/grub)
+endef
+
+define Image/Build/squashfs
+ $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
+endef
+