Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild

Fix up some trivial conflicts in {i386|ia64}/Makefile

+195 -148
+2 -2
Documentation/kbuild/makefiles.txt
··· 1033 1033 1034 1034 Example: 1035 1035 #arch/i386/Makefile 1036 - GCC_VERSION := $(call cc-version) 1037 1036 cflags-y += $(shell \ 1038 - if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;) 1037 + if [ $(call cc-version) -ge 0300 ] ; then \ 1038 + echo "-mregparm=3"; fi ;) 1039 1039 1040 1040 In the above example -mregparm=3 is only used for gcc version greater 1041 1041 than or equal to gcc 3.0.
+2 -3
Kbuild
··· 22 22 23 23 quiet_cmd_offsets = GEN $@ 24 24 define cmd_offsets 25 - mkdir -p $(dir $@); \ 26 - cat $< | \ 27 25 (set -e; \ 28 26 echo "#ifndef __ASM_OFFSETS_H__"; \ 29 27 echo "#define __ASM_OFFSETS_H__"; \ ··· 32 34 echo " *"; \ 33 35 echo " */"; \ 34 36 echo ""; \ 35 - sed -ne $(sed-y); \ 37 + sed -ne $(sed-y) $<; \ 36 38 echo ""; \ 37 39 echo "#endif" ) > $@ 38 40 endef ··· 43 45 $(call if_changed_dep,cc_s_c) 44 46 45 47 $(obj)/$(offsets-file): arch/$(ARCH)/kernel/asm-offsets.s Kbuild 48 + $(Q)mkdir -p $(dir $@) 46 49 $(call cmd,offsets) 47 50
+54 -43
Makefile
··· 141 141 142 142 export srctree objtree VPATH TOPDIR 143 143 144 - nullstring := 145 - space := $(nullstring) # end of line 146 - 147 - # Take the contents of any files called localversion* and the config 148 - # variable CONFIG_LOCALVERSION and append them to KERNELRELEASE. Be 149 - # careful not to include files twice if building in the source 150 - # directory. LOCALVERSION from the command line override all of this 151 - 152 - localver := $(objtree)/localversion* $(srctree)/localversion* 153 - localver := $(sort $(wildcard $(localver))) 154 - # skip backup files (containing '~') 155 - localver := $(foreach f, $(localver), $(if $(findstring ~, $(f)),,$(f))) 156 - 157 - LOCALVERSION = $(subst $(space),, \ 158 - $(shell cat /dev/null $(localver)) \ 159 - $(patsubst "%",%,$(CONFIG_LOCALVERSION))) 160 - 161 - KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION) 162 144 163 145 # SUBARCH tells the usermode build what the underlying arch is. That is set 164 146 # first, and if a usermode build is happening, the "ARCH=um" on the command ··· 335 353 -ffreestanding 336 354 AFLAGS := -D__ASSEMBLY__ 337 355 338 - export VERSION PATCHLEVEL SUBLEVEL EXTRAVERSION LOCALVERSION KERNELRELEASE \ 356 + # Read KERNELRELEASE from .kernelrelease (if it exists) 357 + KERNELRELEASE = $(shell cat .kernelrelease 2> /dev/null) 358 + 359 + export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE \ 339 360 ARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC \ 340 361 CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE \ 341 362 HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS ··· 535 550 # INSTALL_PATH specifies where to place the updated kernel and system map 536 551 # images. Default is /boot, but you can set it to other values 537 552 export INSTALL_PATH ?= /boot 538 - 539 - # If CONFIG_LOCALVERSION_AUTO is set, we automatically perform some tests 540 - # and try to determine if the current source tree is a release tree, of any sort, 541 - # or if is a pure development tree. 542 - # 543 - # A 'release tree' is any tree with a git TAG associated 544 - # with it. The primary goal of this is to make it safe for a native 545 - # git/CVS/SVN user to build a release tree (i.e, 2.6.9) and also to 546 - # continue developing against the current Linus tree, without having the Linus 547 - # tree overwrite the 2.6.9 tree when installed. 548 - # 549 - # Currently, only git is supported. 550 - # Other SCMs can edit scripts/setlocalversion and add the appropriate 551 - # checks as needed. 552 - 553 - 554 - ifdef CONFIG_LOCALVERSION_AUTO 555 - localversion-auto := $(shell $(PERL) $(srctree)/scripts/setlocalversion $(srctree)) 556 - LOCALVERSION := $(LOCALVERSION)$(localversion-auto) 557 - endif 558 553 559 554 # 560 555 # INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory ··· 747 782 $(vmlinux-dirs): prepare scripts 748 783 $(Q)$(MAKE) $(build)=$@ 749 784 785 + # Build the kernel release string 786 + # The KERNELRELEASE is stored in a file named .kernelrelease 787 + # to be used when executing for example make install or make modules_install 788 + # 789 + # Take the contents of any files called localversion* and the config 790 + # variable CONFIG_LOCALVERSION and append them to KERNELRELEASE. 791 + # LOCALVERSION from the command line override all of this 792 + 793 + nullstring := 794 + space := $(nullstring) # end of line 795 + 796 + ___localver = $(objtree)/localversion* $(srctree)/localversion* 797 + __localver = $(sort $(wildcard $(___localver))) 798 + # skip backup files (containing '~') 799 + _localver = $(foreach f, $(__localver), $(if $(findstring ~, $(f)),,$(f))) 800 + 801 + localver = $(subst $(space),, \ 802 + $(shell cat /dev/null $(_localver)) \ 803 + $(patsubst "%",%,$(CONFIG_LOCALVERSION))) 804 + 805 + # If CONFIG_LOCALVERSION_AUTO is set scripts/setlocalversion is called 806 + # and if the SCM is know a tag from the SCM is appended. 807 + # The appended tag is determinded by the SCM used. 808 + # 809 + # Currently, only git is supported. 810 + # Other SCMs can edit scripts/setlocalversion and add the appropriate 811 + # checks as needed. 812 + ifdef CONFIG_LOCALVERSION_AUTO 813 + _localver-auto = $(shell $(CONFIG_SHELL) \ 814 + $(srctree)/scripts/setlocalversion $(srctree)) 815 + localver-auto = $(LOCALVERSION)$(_localver-auto) 816 + endif 817 + 818 + localver-full = $(localver)$(localver-auto) 819 + 820 + # Store (new) KERNELRELASE string in .kernelrelease 821 + kernelrelease = \ 822 + $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(localver-full) 823 + .kernelrelease: FORCE 824 + $(Q)rm -f .kernelrelease 825 + $(Q)echo $(kernelrelease) > .kernelrelease 826 + $(Q)echo " Building kernel $(kernelrelease)" 827 + 828 + 750 829 # Things we need to do before we recursively start building the kernel 751 830 # or the modules are listed in "prepare". 752 831 # A multi level approach is used. prepareN is processed before prepareN-1. ··· 807 798 # and if so do: 808 799 # 1) Check that make has not been executed in the kernel src $(srctree) 809 800 # 2) Create the include2 directory, used for the second asm symlink 810 - 811 - prepare3: 801 + prepare3: .kernelrelease 812 802 ifneq ($(KBUILD_SRC),) 813 803 @echo ' Using $(srctree) as source for kernel' 814 804 $(Q)if [ -f $(srctree)/.config ]; then \ ··· 992 984 993 985 # Directories & files removed with 'make mrproper' 994 986 MRPROPER_DIRS += include/config include2 995 - MRPROPER_FILES += .config .config.old include/asm .version \ 987 + MRPROPER_FILES += .config .config.old include/asm .version .old_version \ 996 988 include/linux/autoconf.h include/linux/version.h \ 997 - Module.symvers tags TAGS cscope* 989 + .kernelrelease Module.symvers tags TAGS cscope* 998 990 999 991 # clean - Delete most, but leave enough to build external modules 1000 992 # ··· 1080 1072 @echo ' tags/TAGS - Generate tags file for editors' 1081 1073 @echo ' cscope - Generate cscope index' 1082 1074 @echo ' kernelrelease - Output the release version string' 1075 + @echo ' kernelversion - Output the version stored in Makefile' 1083 1076 @echo '' 1084 1077 @echo 'Static analysers' 1085 1078 @echo ' buildcheck - List dangling references to vmlinux discarded sections' ··· 1302 1293 1303 1294 kernelrelease: 1304 1295 @echo $(KERNELRELEASE) 1296 + kernelversion: 1297 + @echo $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) 1305 1298 1306 1299 # FIXME Should go into a make.lib or something 1307 1300 # ===========================================================================
+2 -2
arch/frv/boot/Makefile
··· 57 57 # installation 58 58 # 59 59 install: $(CONFIGURE) Image 60 - sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) Image $(TOPDIR)/System.map "$(INSTALL_PATH)" 60 + sh ./install.sh $(KERNELRELEASE) Image $(TOPDIR)/System.map "$(INSTALL_PATH)" 61 61 62 62 zinstall: $(CONFIGURE) zImage 63 - sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)" 63 + sh ./install.sh $(KERNELRELEASE) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)" 64 64 65 65 # 66 66 # miscellany
+6 -4
arch/i386/Makefile
··· 37 37 # CPU-specific tuning. Anything which can be shared with UML should go here. 38 38 include $(srctree)/arch/i386/Makefile.cpu 39 39 40 - cflags-$(CONFIG_REGPARM) += -mregparm=3 40 + # -mregparm=3 works ok on gcc-3.0 and later 41 + # 42 + cflags-$(CONFIG_REGPARM) += $(shell if [ $(call cc-version) -ge 0300 ] ; then \ 43 + echo "-mregparm=3"; fi ;) 41 44 42 45 # Disable unit-at-a-time mode, it makes gcc use a lot more stack 43 46 # due to the lack of sharing of stacklots. ··· 103 100 boot := arch/i386/boot 104 101 105 102 .PHONY: zImage bzImage compressed zlilo bzlilo \ 106 - zdisk bzdisk fdimage fdimage144 fdimage288 install kernel_install 103 + zdisk bzdisk fdimage fdimage144 fdimage288 install 107 104 108 105 all: bzImage 109 106 ··· 125 122 fdimage fdimage144 fdimage288: vmlinux 126 123 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ 127 124 128 - install: vmlinux 129 - install kernel_install: 125 + install: 130 126 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install 131 127 132 128 archclean:
+1 -1
arch/i386/boot/Makefile
··· 100 100 cp System.map $(INSTALL_PATH)/ 101 101 if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi 102 102 103 - install: $(BOOTIMAGE) 103 + install: 104 104 sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $< System.map "$(INSTALL_PATH)"
+14
arch/i386/boot/install.sh
··· 19 19 # $4 - default install path (blank if root directory) 20 20 # 21 21 22 + verify () { 23 + if [ ! -f "$1" ]; then 24 + echo "" 1>&2 25 + echo " *** Missing file: $1" 1>&2 26 + echo ' *** You need to run "make" before "make install".' 1>&2 27 + echo "" 1>&2 28 + exit 1 29 + fi 30 + } 31 + 32 + # Make sure the files actually exist 33 + verify "$2" 34 + verify "$3" 35 + 22 36 # User may have a custom install script 23 37 24 38 if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi
+1 -2
arch/ia64/Makefile
··· 25 25 -falign-functions=32 -frename-registers -fno-optimize-sibling-calls 26 26 CFLAGS_KERNEL := -mconstant-gp 27 27 28 - GCC_VERSION := $(call cc-version) 29 28 GAS_STATUS = $(shell $(srctree)/arch/ia64/scripts/check-gas "$(CC)" "$(OBJDUMP)") 30 29 CPPFLAGS += $(shell $(srctree)/arch/ia64/scripts/toolchain-flags "$(CC)" "$(OBJDUMP)" "$(READELF)") 31 30 ··· 36 37 ftp://ftp.hpl.hp.com/pub/linux-ia64/gas-030124.tar.gz) 37 38 endif 38 39 39 - ifeq ($(GCC_VERSION),0304) 40 + ifeq ($(call cc-version),0304) 40 41 cflags-$(CONFIG_ITANIUM) += -mtune=merced 41 42 cflags-$(CONFIG_MCKINLEY) += -mtune=mckinley 42 43 endif
+2 -4
arch/powerpc/Makefile
··· 76 76 CHECKFLAGS += -m$(SZ) -D__powerpc__ -D__powerpc$(SZ)__ 77 77 78 78 ifeq ($(CONFIG_PPC64),y) 79 - GCC_VERSION := $(call cc-version) 80 - GCC_BROKEN_VEC := $(shell if [ $(GCC_VERSION) -lt 0400 ] ; then echo "y"; fi) 79 + GCC_BROKEN_VEC := $(shell if [ $(call cc-version) -lt 0400 ] ; then echo "y"; fi) 81 80 82 81 ifeq ($(CONFIG_POWER4_ONLY),y) 83 82 ifeq ($(CONFIG_ALTIVEC),y) ··· 188 189 # Ensure this is binutils 2.12.1 (or 2.12.90.0.7) or later for altivec 189 190 # instructions. 190 191 # gcc-3.4 and binutils-2.14 are a fatal combination. 191 - GCC_VERSION := $(call cc-version) 192 192 193 193 checkbin: 194 - @if test "$(GCC_VERSION)" = "0304" ; then \ 194 + @if test "$(call cc-version)" = "0304" ; then \ 195 195 if ! /bin/echo mftb 5 | $(AS) -v -mppc -many -o $(TOUT) >/dev/null 2>&1 ; then \ 196 196 echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '; \ 197 197 echo 'correctly with gcc-3.4 and your version of binutils.'; \
+1 -2
arch/ppc/Makefile
··· 128 128 # Ensure this is binutils 2.12.1 (or 2.12.90.0.7) or later for altivec 129 129 # instructions. 130 130 # gcc-3.4 and binutils-2.14 are a fatal combination. 131 - GCC_VERSION := $(call cc-version) 132 131 133 132 checkbin: 134 - @if test "$(GCC_VERSION)" = "0304" ; then \ 133 + @if test "$(call cc-version)" = "0304" ; then \ 135 134 if ! /bin/echo mftb 5 | $(AS) -v -mppc -many -o $(TOUT) >/dev/null 2>&1 ; then \ 136 135 echo -n '*** ${VERSION}.${PATCHLEVEL} kernels no longer build '; \ 137 136 echo 'correctly with gcc-3.4 and your version of binutils.'; \
+4 -1
arch/x86_64/Makefile
··· 80 80 bzdisk: vmlinux 81 81 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zdisk 82 82 83 - install fdimage fdimage144 fdimage288: vmlinux 83 + fdimage fdimage144 fdimage288: vmlinux 84 84 $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@ 85 + 86 + install: 87 + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) $@ 85 88 86 89 archclean: 87 90 $(Q)$(MAKE) $(clean)=$(boot)
+1 -1
arch/x86_64/boot/Makefile
··· 98 98 cp System.map $(INSTALL_PATH)/ 99 99 if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi 100 100 101 - install: $(BOOTIMAGE) 101 + install: 102 102 sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
+1 -39
arch/x86_64/boot/install.sh
··· 1 1 #!/bin/sh 2 - # 3 - # arch/x86_64/boot/install.sh 4 - # 5 - # This file is subject to the terms and conditions of the GNU General Public 6 - # License. See the file "COPYING" in the main directory of this archive 7 - # for more details. 8 - # 9 - # Copyright (C) 1995 by Linus Torvalds 10 - # 11 - # Adapted from code in arch/i386/boot/Makefile by H. Peter Anvin 12 - # 13 - # "make install" script for i386 architecture 14 - # 15 - # Arguments: 16 - # $1 - kernel version 17 - # $2 - kernel image file 18 - # $3 - kernel map file 19 - # $4 - default install path (blank if root directory) 20 - # 21 - 22 - # User may have a custom install script 23 - 24 - if [ -x ~/bin/${CROSS_COMPILE}installkernel ]; then exec ~/bin/${CROSS_COMPILE}installkernel "$@"; fi 25 - if [ -x /sbin/${CROSS_COMPILE}installkernel ]; then exec /sbin/${CROSS_COMPILE}installkernel "$@"; fi 26 - 27 - # Default install - same as make zlilo 28 - 29 - if [ -f $4/vmlinuz ]; then 30 - mv $4/vmlinuz $4/vmlinuz.old 31 - fi 32 - 33 - if [ -f $4/System.map ]; then 34 - mv $4/System.map $4/System.old 35 - fi 36 - 37 - cat $2 > $4/vmlinuz 38 - cp $3 $4/System.map 39 - 40 - if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi 2 + . $srctree/arch/i386/boot/install.sh
+6
fs/xfs/Kbuild
··· 1 + # 2 + # The xfs people like to share Makefile with 2.6 and 2.4. 3 + # Utilise file named Kbuild file which has precedence over Makefile. 4 + # 5 + 6 + include $(srctree)/$(obj)/Makefile-linux-2.6
+9 -4
scripts/Kbuild.include
··· 3 3 4 4 # Convinient variables 5 5 comma := , 6 + squote := ' 6 7 empty := 7 8 space := $(empty) $(empty) 8 9 ··· 11 10 # The temporary file to save gcc -MD generated dependencies must not 12 11 # contain a comma 13 12 depfile = $(subst $(comma),_,$(@D)/.$(@F).d) 13 + 14 + ### 15 + # Escape single quote for use in echo statements 16 + escsq = $(subst $(squote),'\$(squote)',$1) 14 17 15 18 ### 16 19 # filechk is used to check if the content of a generated file is updated. ··· 52 47 53 48 # If quiet is set, only print short version of command 54 49 cmd = @$(if $($(quiet)cmd_$(1)),\ 55 - echo ' $(subst ','\'',$($(quiet)cmd_$(1)))' &&) $(cmd_$(1)) 50 + echo ' $(call escsq,$($(quiet)cmd_$(1)))' &&) $(cmd_$(1)) 56 51 57 52 # Add $(obj)/ for paths that is not absolute 58 53 objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o))) ··· 73 68 74 69 # echo command. Short version is $(quiet) equals quiet, otherwise full command 75 70 echo-cmd = $(if $($(quiet)cmd_$(1)), \ 76 - echo ' $(subst ','\'',$($(quiet)cmd_$(1)))';) 71 + echo ' $(call escsq,$($(quiet)cmd_$(1)))';) 77 72 78 73 # function to only execute the passed command if necessary 79 74 # >'< substitution is for echo to work, >$< substitution to preserve $ when reloading .cmd file ··· 83 78 @set -e; \ 84 79 $(echo-cmd) \ 85 80 $(cmd_$(1)); \ 86 - echo 'cmd_$@ := $(subst $$,$$$$,$(subst ','\'',$(cmd_$(1))))' > $(@D)/.$(@F).cmd) 81 + echo 'cmd_$@ := $(subst $$,$$$$,$(call escsq,$(cmd_$(1))))' > $(@D)/.$(@F).cmd) 87 82 88 83 # execute the command and also postprocess generated .d dependencies 89 84 # file ··· 92 87 @set -e; \ 93 88 $(echo-cmd) \ 94 89 $(cmd_$(1)); \ 95 - scripts/basic/fixdep $(depfile) $@ '$(subst $$,$$$$,$(subst ','\'',$(cmd_$(1))))' > $(@D)/.$(@F).tmp; \ 90 + scripts/basic/fixdep $(depfile) $@ '$(subst $$,$$$$,$(call escsq,$(cmd_$(1))))' > $(@D)/.$(@F).tmp; \ 96 91 rm -f $(depfile); \ 97 92 mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd) 98 93
+2 -2
scripts/Makefile.build
··· 179 179 define rule_cc_o_c 180 180 $(if $($(quiet)cmd_checksrc),echo ' $($(quiet)cmd_checksrc)';) \ 181 181 $(cmd_checksrc) \ 182 - $(if $($(quiet)cmd_cc_o_c),echo ' $(subst ','\'',$($(quiet)cmd_cc_o_c))';) \ 182 + $(if $($(quiet)cmd_cc_o_c),echo ' $(call escsq,$($(quiet)cmd_cc_o_c))';) \ 183 183 $(cmd_cc_o_c); \ 184 184 $(cmd_modversions) \ 185 - scripts/basic/fixdep $(depfile) $@ '$(subst ','\'',$(cmd_cc_o_c))' > $(@D)/.$(@F).tmp; \ 185 + scripts/basic/fixdep $(depfile) $@ '$(call escsq,$(cmd_cc_o_c))' > $(@D)/.$(@F).tmp; \ 186 186 rm -f $(depfile); \ 187 187 mv -f $(@D)/.$(@F).tmp $(@D)/.$(@F).cmd 188 188 endef
+12 -36
scripts/kconfig/lxdialog/Makefile
··· 1 - HOST_EXTRACFLAGS := -DLOCALE 2 - ifeq ($(shell uname),SunOS) 3 - HOST_LOADLIBES := -lcurses 4 - else 5 - HOST_LOADLIBES := -lncurses 6 - endif 1 + # Makefile to build lxdialog package 2 + # 7 3 8 - ifeq (/usr/include/ncurses/ncurses.h, $(wildcard /usr/include/ncurses/ncurses.h)) 9 - HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>" 10 - else 11 - ifeq (/usr/include/ncurses/curses.h, $(wildcard /usr/include/ncurses/curses.h)) 12 - HOST_EXTRACFLAGS += -I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>" 13 - else 14 - ifeq (/usr/include/ncurses.h, $(wildcard /usr/include/ncurses.h)) 15 - HOST_EXTRACFLAGS += -DCURSES_LOC="<ncurses.h>" 16 - else 17 - HOST_EXTRACFLAGS += -DCURSES_LOC="<curses.h>" 18 - endif 19 - endif 20 - endif 4 + check-lxdialog := $(srctree)/$(src)/check-lxdialog.sh 5 + HOST_EXTRACFLAGS := $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) 6 + HOST_LOADLIBES := $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags) 7 + 8 + HOST_EXTRACFLAGS += -DLOCALE 9 + 10 + .PHONY: dochecklxdialog 11 + $(obj)/dochecklxdialog: 12 + $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_LOADLIBES) 21 13 22 14 hostprogs-y := lxdialog 23 - always := ncurses $(hostprogs-y) 15 + always := $(hostprogs-y) dochecklxdialog 24 16 25 17 lxdialog-objs := checklist.o menubox.o textbox.o yesno.o inputbox.o \ 26 18 util.o lxdialog.o msgbox.o 27 - 28 - .PHONY: $(obj)/ncurses 29 - $(obj)/ncurses: 30 - @echo "main() {}" > lxtemp.c 31 - @if $(HOSTCC) lxtemp.c $(HOST_LOADLIBES); then \ 32 - rm -f lxtemp.c a.out; \ 33 - else \ 34 - rm -f lxtemp.c; \ 35 - echo -e "\007" ;\ 36 - echo ">> Unable to find the Ncurses libraries." ;\ 37 - echo ">>" ;\ 38 - echo ">> You must install ncurses-devel in order" ;\ 39 - echo ">> to use 'make menuconfig'" ;\ 40 - echo ;\ 41 - exit 1 ;\ 42 - fi
+67
scripts/kconfig/lxdialog/check-lxdialog.sh
··· 1 + #!/bin/sh 2 + # Check ncurses compatibility 3 + 4 + # What library to link 5 + ldflags() 6 + { 7 + if [ `uname` == SunOS ]; then 8 + echo '-lcurses' 9 + else 10 + echo '-lncurses' 11 + fi 12 + } 13 + 14 + # Where is ncurses.h? 15 + ccflags() 16 + { 17 + if [ -f /usr/include/ncurses/ncurses.h ]; then 18 + echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses.h>"' 19 + elif [ -f /usr/include/ncurses/curses.h ]; then 20 + echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"' 21 + elif [ -f /usr/include/ncurses.h ]; then 22 + echo '-DCURSES_LOC="<ncurses.h>"' 23 + else 24 + echo '-DCURSES_LOC="<curses.h>"' 25 + fi 26 + } 27 + 28 + compiler="" 29 + # Check if we can link to ncurses 30 + check() { 31 + echo "main() {}" | $compiler -xc - 32 + if [ $? != 0 ]; then 33 + echo " *** Unable to find the ncurses libraries." 1>&2 34 + echo " *** make menuconfig require the ncurses libraries" 1>&2 35 + echo " *** " 1>&2 36 + echo " *** Install ncurses (ncurses-devel) and try again" 1>&2 37 + echo " *** " 1>&2 38 + exit 1 39 + fi 40 + } 41 + 42 + usage() { 43 + printf "Usage: $0 [-check compiler options|-header|-library]\n" 44 + } 45 + 46 + if [ $# == 0 ]; then 47 + usage 48 + exit 1 49 + fi 50 + 51 + case "$1" in 52 + "-check") 53 + shift 54 + compiler="$@" 55 + check 56 + ;; 57 + "-ccflags") 58 + ccflags 59 + ;; 60 + "-ldflags") 61 + ldflags 62 + ;; 63 + "*") 64 + usage 65 + exit 1 66 + ;; 67 + esac
+1 -1
scripts/mod/file2alias.c
··· 417 417 do_input(alias, id->sndbit, 0, SND_MAX); 418 418 sprintf(alias + strlen(alias), "f*"); 419 419 if (id->flags&INPUT_DEVICE_ID_MATCH_FFBIT) 420 - do_input(alias, id->ffbit, 0, SND_MAX); 420 + do_input(alias, id->ffbit, 0, FF_MAX); 421 421 sprintf(alias + strlen(alias), "w*"); 422 422 if (id->flags&INPUT_DEVICE_ID_MATCH_SWBIT) 423 423 do_input(alias, id->swbit, 0, SW_MAX);
+6
scripts/reference_discarded.pl
··· 71 71 # printf("ignoring %d conglomerate(s)\n", $ignore); 72 72 73 73 # printf("Scanning objects\n"); 74 + 75 + # Keith Ownes <kaos@sgi.com> commented: 76 + # For our future {in}sanity, add a comment that this is the ppc .opd 77 + # section, not the ia64 .opd section. 78 + # ia64 .opd should not point to discarded sections. 74 79 $errorcount = 0; 75 80 foreach $object (keys(%object)) { 76 81 my $from; ··· 93 88 ($from !~ /\.text\.exit$/ && 94 89 $from !~ /\.exit\.text$/ && 95 90 $from !~ /\.data\.exit$/ && 91 + $from !~ /\.opd$/ && 96 92 $from !~ /\.exit\.data$/ && 97 93 $from !~ /\.altinstructions$/ && 98 94 $from !~ /\.pdr$/ &&
+1 -1
scripts/setlocalversion
··· 17 17 18 18 # Are there uncommitted changes? 19 19 if git diff-files | read dummy; then 20 - printf '%s' -git_dirty 20 + printf '%s' -dirty 21 21 fi 22 22 fi