From: BVK Chaitanya Date: Sun, 19 Sep 2010 13:24:45 +0000 (+0530) Subject: merge with mainline X-Git-Tag: 1.99~482^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b524259bec50db5170fbc0d881713ec2187cc132;p=thirdparty%2Fgrub.git merge with mainline --- b524259bec50db5170fbc0d881713ec2187cc132 diff --cc conf/Makefile.extra-dist index 9acaadbcc,afedc7d28..68989d333 --- a/conf/Makefile.extra-dist +++ b/conf/Makefile.extra-dist @@@ -14,13 -19,20 +19,14 @@@ EXTRA_DIST += grub-core/Makefile.core.d EXTRA_DIST += grub-core/Makefile.gcry.def EXTRA_DIST += grub-core/genmoddep.awk -EXTRA_DIST += grub-core/genmodsrc.sh -EXTRA_DIST += grub-core/genfslist.sh -EXTRA_DIST += grub-core/gencmdlist.sh +EXTRA_DIST += grub-core/genmod.sh.in +EXTRA_DIST += grub-core/gensyminfo.sh.in EXTRA_DIST += grub-core/gensymlist.sh EXTRA_DIST += grub-core/genemuinit.sh -EXTRA_DIST += grub-core/genvideolist.sh -EXTRA_DIST += grub-core/genhandlerlist.sh -EXTRA_DIST += grub-core/genpartmaplist.sh -EXTRA_DIST += grub-core/genterminallist.sh -EXTRA_DIST += grub-core/genparttoollist.sh EXTRA_DIST += grub-core/genemuinitheader.sh + EXTRA_DIST += grub-core/lib/libgcrypt/cipher EXTRA_DIST += $(shell find $(top_srcdir)/include -name '*.h') +EXTRA_DIST += $(shell find $(top_srcdir)/grub-core/lib -name '*.h') EXTRA_DIST += $(shell find $(top_srcdir)/grub-core/gnulib -name '*.h') EXTRA_DIST += $(shell find $(top_srcdir)/grub-core/efiemu -name '*.h') -EXTRA_DIST += $(shell find $(top_srcdir)/grub-core/lib -name '*.h') diff --cc grub-core/Makefile.am index 3ee526ff8,566a0cb0a..0c47d78a5 --- a/grub-core/Makefile.am +++ b/grub-core/Makefile.am @@@ -321,28 -247,14 +264,27 @@@ CLEANFILES += video.ls # but, crypto.lst is simply copied crypto.lst: $(srcdir)/lib/libgcrypt-grub/cipher/crypto.lst cp $^ $@ +platform_DATA += crypto.lst CLEANFILES += crypto.lst +syminfo.lst: gensyminfo.sh kernel_syms.lst $(MODULE_FILES) + cat kernel_syms.lst > $@.new + for m in $(MODULE_FILES); do \ + sh $< $$m >> $@.new || exit 1; \ + done + mv $@.new $@ + # generate global module dependencies list -moddep.lst: kernel_syms.lst genmoddep.awk $(DEF_FILES) $(UND_FILES) - cat $(DEF_FILES) kernel_syms.lst /dev/null \ - | $(AWK) -f $(srcdir)/genmoddep.awk $(UND_FILES) > $@ \ - || (rm -f $@; exit 1) +moddep.lst: syminfo.lst genmoddep.awk + cat $< | sort | awk -f $(srcdir)/genmoddep.awk > $@ || (rm -f $@; exit 1) +platform_DATA += moddep.lst +CLEANFILES += config.log syminfo.lst moddep.lst + +$(MOD_FILES): %.mod : genmod.sh moddep.lst %.module$(EXEEXT) + sh $^ $@ +platform_DATA += $(MOD_FILES) +CLEANFILES += $(MOD_FILES) - if COND_i386_pc if COND_ENABLE_EFIEMU efiemu32.o: efiemu/runtime/efiemu.c $(TARGET_OBJ2ELF) -rm -f $@; \ diff --cc grub-core/Makefile.core.def index c852c344f,b9abac40d..d8ab2935f --- a/grub-core/Makefile.core.def +++ b/grub-core/Makefile.core.def @@@ -1,5 -1,5 +1,15 @@@ AutoGen definitions Makefile.tpl; ++script = { ++ name = gensyminfo.sh; ++ common = gensyminfo.sh.in; ++}; ++ ++script = { ++ name = genmod.sh; ++ common = genmod.sh.in; ++}; ++ kernel = { name = kernel; diff --cc grub-core/bus/usb/uhci.c index 0bba24b54,2265ebed0..4bf84a8f8 --- a/grub-core/bus/usb/uhci.c +++ b/grub-core/bus/usb/uhci.c @@@ -39,7 -41,22 +41,20 @@@ typedef enu #define GRUB_UHCI_LINK_TERMINATE 1 #define GRUB_UHCI_LINK_QUEUE_HEAD 2 + enum + { + GRUB_UHCI_REG_PORTSC_CONNECT_CHANGED = 0x0002, + GRUB_UHCI_REG_PORTSC_PORT_ENABLED = 0x0004, + GRUB_UHCI_REG_PORTSC_RESUME = 0x0040, + GRUB_UHCI_REG_PORTSC_RESET = 0x0200, + GRUB_UHCI_REG_PORTSC_SUSPEND = 0x1000, + GRUB_UHCI_REG_PORTSC_RW = GRUB_UHCI_REG_PORTSC_PORT_ENABLED + | GRUB_UHCI_REG_PORTSC_RESUME | GRUB_UHCI_REG_PORTSC_RESET + | GRUB_UHCI_REG_PORTSC_SUSPEND, + /* These bits should not be written as 1 unless we really need it */ + GRUB_UHCI_PORTSC_RWC = ((1 << 1) | (1 << 3) | (1 << 11) | (3 << 13)) + }; -#define - /* UHCI Queue Head. */ struct grub_uhci_qh { diff --cc util/bash-completion.d/Makefile.am index 000000000,58171988d..136287cf1 mode 000000,100644..100644 --- a/util/bash-completion.d/Makefile.am +++ b/util/bash-completion.d/Makefile.am @@@ -1,0 -1,13 +1,13 @@@ + + bash_completion_source = grub-completion.bash.in + bash_completion_script = grub + + EXTRA_DIST = $(bash_completion_source) + -CLEANFILES = $(bash_completion_script) ++CLEANFILES = $(bash_completion_script) config.log + + bashcompletiondir = $(sysconfdir)/bash_completion.d + bashcompletion_DATA = $(bash_completion_script) + + $(bash_completion_script): $(bash_completion_source) $(top_builddir)/config.status + $(top_builddir)/config.status --file=$@:$<