diff --git a/ChangeLog b/ChangeLog index 6b75fe01a..2e1bf307e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-06-19 Pavel Roskin + + * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has + changed. This is needed in case GRUB_LIBDIR changes. + * conf/i386-ieee1275.rmk: Likewise. + * conf/i386-linuxbios.rmk: Likewise. + * conf/i386-pc.rmk: Likewise. + * conf/powerpc-ieee1275.rmk: Likewise. + 2008-06-18 Pavel Roskin * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename diff --git a/conf/i386-efi.mk b/conf/i386-efi.mk index b6a9d26f1..4d280451e 100644 --- a/conf/i386-efi.mk +++ b/conf/i386-efi.mk @@ -35,6 +35,7 @@ grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< -include grub_mkimage-util_resolve.d +util/i386/efi/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-setup. #grub_setup_SOURCES = util/i386/pc/grub-setup.c util/biosdisk.c \ diff --git a/conf/i386-efi.rmk b/conf/i386-efi.rmk index 87626c25e..311b6ab7d 100644 --- a/conf/i386-efi.rmk +++ b/conf/i386-efi.rmk @@ -17,6 +17,7 @@ sbin_UTILITIES = grub-mkdevicemap # For grub-mkimage. grub_mkimage_SOURCES = util/i386/efi/grub-mkimage.c util/misc.c \ util/resolve.c +util/i386/efi/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-setup. #grub_setup_SOURCES = util/i386/pc/grub-setup.c util/biosdisk.c \ diff --git a/conf/i386-ieee1275.mk b/conf/i386-ieee1275.mk index 667422a86..a51fe14bb 100644 --- a/conf/i386-ieee1275.mk +++ b/conf/i386-ieee1275.mk @@ -178,6 +178,7 @@ grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) -include grub_mkimage-util_resolve.d grub_mkimage_LDFLAGS = $(LIBLZO) +util/elf/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-mkdevicemap. grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \ diff --git a/conf/i386-ieee1275.rmk b/conf/i386-ieee1275.rmk index ac2f45df4..e4f2a6637 100644 --- a/conf/i386-ieee1275.rmk +++ b/conf/i386-ieee1275.rmk @@ -50,6 +50,7 @@ endif grub_mkimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \ util/resolve.c grub_mkimage_LDFLAGS = $(LIBLZO) +util/elf/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-mkdevicemap. grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \ diff --git a/conf/i386-linuxbios.mk b/conf/i386-linuxbios.mk index 467cc3863..19e5eb671 100644 --- a/conf/i386-linuxbios.mk +++ b/conf/i386-linuxbios.mk @@ -165,6 +165,7 @@ grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) -include grub_mkimage-util_resolve.d grub_mkimage_LDFLAGS = $(LIBLZO) +util/elf/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-mkdevicemap. grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \ diff --git a/conf/i386-linuxbios.rmk b/conf/i386-linuxbios.rmk index 31f03a9e5..d2546beeb 100644 --- a/conf/i386-linuxbios.rmk +++ b/conf/i386-linuxbios.rmk @@ -49,6 +49,7 @@ endif grub_mkimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \ util/resolve.c grub_mkimage_LDFLAGS = $(LIBLZO) +util/elf/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-mkdevicemap. grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \ diff --git a/conf/i386-pc.mk b/conf/i386-pc.mk index 6c0c12f73..37e08bcb6 100644 --- a/conf/i386-pc.mk +++ b/conf/i386-pc.mk @@ -248,6 +248,7 @@ grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) grub_mkimage_CFLAGS = -DGRUB_MEMORY_MACHINE_LINK_ADDR=$(GRUB_MEMORY_MACHINE_LINK_ADDR) grub_mkimage_LDFLAGS = $(LIBLZO) +util/i386/pc/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-setup. util/i386/pc/grub-setup.c_DEPENDENCIES = grub_setup_init.h diff --git a/conf/i386-pc.rmk b/conf/i386-pc.rmk index a3f8467e9..7b7924fe2 100644 --- a/conf/i386-pc.rmk +++ b/conf/i386-pc.rmk @@ -76,6 +76,7 @@ grub_mkimage_SOURCES = util/i386/pc/grub-mkimage.c util/misc.c \ util/resolve.c grub_mkimage_CFLAGS = -DGRUB_MEMORY_MACHINE_LINK_ADDR=$(GRUB_MEMORY_MACHINE_LINK_ADDR) grub_mkimage_LDFLAGS = $(LIBLZO) +util/i386/pc/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-setup. util/i386/pc/grub-setup.c_DEPENDENCIES = grub_setup_init.h diff --git a/conf/powerpc-ieee1275.mk b/conf/powerpc-ieee1275.mk index e1d41df89..748d8fd40 100644 --- a/conf/powerpc-ieee1275.mk +++ b/conf/powerpc-ieee1275.mk @@ -55,6 +55,7 @@ grub_mkimage-util_resolve.o: util/resolve.c $(util/resolve.c_DEPENDENCIES) $(CC) -Iutil -I$(srcdir)/util $(CPPFLAGS) $(CFLAGS) -DGRUB_UTIL=1 $(grub_mkimage_CFLAGS) -MD -c -o $@ $< -include grub_mkimage-util_resolve.d +util/elf/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-mkdevicemap. grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \ diff --git a/conf/powerpc-ieee1275.rmk b/conf/powerpc-ieee1275.rmk index 935b505fc..bb044908e 100644 --- a/conf/powerpc-ieee1275.rmk +++ b/conf/powerpc-ieee1275.rmk @@ -37,6 +37,7 @@ endif # For grub-mkimage. grub_mkimage_SOURCES = util/elf/grub-mkimage.c util/misc.c \ util/resolve.c +util/elf/grub-mkimage.c_DEPENDENCIES = Makefile # For grub-mkdevicemap. grub_mkdevicemap_SOURCES = util/grub-mkdevicemap.c util/misc.c \