mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-21 17:34:42 +02:00
clean up the x86 image build a bit, fixing unconditional copy of grub files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6237 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
456a5100ad
commit
532f7ffb63
@ -34,7 +34,8 @@ ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/grub
|
define Image/Build/grub
|
||||||
mkdir -p $(KDIR)/root.grub/boot/grub
|
# left here because the image builder doesnt need these
|
||||||
|
$(INSTALL_DIR) $(KDIR)/root.grub/boot/grub
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(KDIR)/*stage* \
|
$(KDIR)/*stage* \
|
||||||
$(KDIR)/root.grub/boot/grub/
|
$(KDIR)/root.grub/boot/grub/
|
||||||
@ -47,8 +48,8 @@ ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Image/Prepare
|
ifeq ($(CONFIG_X86_GRUB_IMAGES),y)
|
||||||
cp $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage
|
define Image/Prepare/grub
|
||||||
# for the image builder
|
# for the image builder
|
||||||
$(CP) \
|
$(CP) \
|
||||||
$(STAGING_DIR)/usr/lib/grub/i386-pc/stage1 \
|
$(STAGING_DIR)/usr/lib/grub/i386-pc/stage1 \
|
||||||
@ -57,11 +58,17 @@ define Image/Prepare
|
|||||||
$(KDIR)/
|
$(KDIR)/
|
||||||
$(CP) $(STAGING_DIR)/usr/sbin/grub $(STAGING_DIR)/bin
|
$(CP) $(STAGING_DIR)/usr/sbin/grub $(STAGING_DIR)/bin
|
||||||
endef
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
define Image/Prepare
|
||||||
|
$(CP) $(LINUX_DIR)/arch/i386/boot/bzImage $(KDIR)/bzImage
|
||||||
|
$(call Image/Prepare/grub)
|
||||||
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(call Image/Build/grub,$(1))
|
$(call Image/Build/grub,$(1))
|
||||||
cp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).fs
|
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).fs
|
||||||
cp $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
|
$(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-vmlinuz
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user