diff options
| author | Jeff Garzik <jeff@garzik.org> | 2006-09-17 01:05:43 -0400 |
|---|---|---|
| committer | Jeff Garzik <jeff@garzik.org> | 2006-09-17 01:05:43 -0400 |
| commit | 803db244b9f71102e366fd689000c1417b9a7508 (patch) | |
| tree | 2fe1abfd16cded8074905b6b91d9d1943e15325e /scripts | |
| parent | 8b98a37c4b00f3fbcf162281bd4595777e61241b (diff) | |
| parent | f04b92e97d21b1921c91ec1d6d5e8bbf8606b77a (diff) | |
Merge branch 'master' into upstream-fixes
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.headersinst | 8 | ||||
| -rw-r--r-- | scripts/Makefile.host | 2 | ||||
| -rwxr-xr-x | scripts/hdrcheck.sh | 4 |
3 files changed, 8 insertions, 6 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index aa9990a3ccd6..12e1daf875c8 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst | |||
| @@ -93,14 +93,14 @@ STUBDEF=__ASM_STUB_`echo $@ | tr a-z. A-Z_`; \ | |||
| 93 | echo "\#ifndef $$STUBDEF" ; \ | 93 | echo "\#ifndef $$STUBDEF" ; \ |
| 94 | echo "\#define $$STUBDEF" ; \ | 94 | echo "\#define $$STUBDEF" ; \ |
| 95 | echo "\# if $(ARCHDEF)" ; \ | 95 | echo "\# if $(ARCHDEF)" ; \ |
| 96 | if [ -r $(srctree)/include/$(archasm)/$@ ]; then \ | 96 | if [ -r $(INSTALL_HDR_PATH)/include/$(archasm)/$@ ]; then \ |
| 97 | echo "\# include <$(archasm)/$@>" ; \ | 97 | echo "\# include <$(archasm)/$@>" ; \ |
| 98 | else \ | 98 | else \ |
| 99 | echo "\# error $(archasm)/$@ does not exist in" \ | 99 | echo "\# error $(archasm)/$@ does not exist in" \ |
| 100 | "the $(ARCH) architecture" ; \ | 100 | "the $(ARCH) architecture" ; \ |
| 101 | fi ; \ | 101 | fi ; \ |
| 102 | echo "\# elif $(ALTARCHDEF)" ; \ | 102 | echo "\# elif $(ALTARCHDEF)" ; \ |
| 103 | if [ -r $(srctree)/include/$(altarchasm)/$@ ]; then \ | 103 | if [ -r $(INSTALL_HDR_PATH)/include/$(altarchasm)/$@ ]; then \ |
| 104 | echo "\# include <$(altarchasm)/$@>" ; \ | 104 | echo "\# include <$(altarchasm)/$@>" ; \ |
| 105 | else \ | 105 | else \ |
| 106 | echo "\# error $(altarchasm)/$@ does not exist in" \ | 106 | echo "\# error $(altarchasm)/$@ does not exist in" \ |
| @@ -149,7 +149,9 @@ endif | |||
| 149 | hdrinst := -rR -f $(srctree)/scripts/Makefile.headersinst obj | 149 | hdrinst := -rR -f $(srctree)/scripts/Makefile.headersinst obj |
| 150 | 150 | ||
| 151 | .PHONY: altarch-dir | 151 | .PHONY: altarch-dir |
| 152 | altarch-dir: | 152 | # All the files in the normal arch dir must be created first, since we test |
| 153 | # for their existence. | ||
| 154 | altarch-dir: $(subdir-y) $(header-y) $(unifdef-y) $(objhdr-y) | ||
| 153 | $(Q)$(MAKE) $(hdrinst)=include/asm-$(ALTARCH) dst=include/asm-$(ALTARCH) | 155 | $(Q)$(MAKE) $(hdrinst)=include/asm-$(ALTARCH) dst=include/asm-$(ALTARCH) |
| 154 | $(Q)$(MAKE) $(hdrinst)=include/asm dst=include/asm | 156 | $(Q)$(MAKE) $(hdrinst)=include/asm dst=include/asm |
| 155 | 157 | ||
diff --git a/scripts/Makefile.host b/scripts/Makefile.host index 18ecd4d5df7f..060f4c563a5c 100644 --- a/scripts/Makefile.host +++ b/scripts/Makefile.host | |||
| @@ -30,7 +30,7 @@ | |||
| 30 | # libkconfig.so as the executable conf. | 30 | # libkconfig.so as the executable conf. |
| 31 | # Note: Shared libraries consisting of C++ files are not supported | 31 | # Note: Shared libraries consisting of C++ files are not supported |
| 32 | 32 | ||
| 33 | __hostprogs := $(sort $(hostprogs-y)$(hostprogs-m)) | 33 | __hostprogs := $(sort $(hostprogs-y) $(hostprogs-m)) |
| 34 | 34 | ||
| 35 | # hostprogs-y := tools/build may have been specified. Retreive directory | 35 | # hostprogs-y := tools/build may have been specified. Retreive directory |
| 36 | host-objdirs := $(foreach f,$(__hostprogs), $(if $(dir $(f)),$(dir $(f)))) | 36 | host-objdirs := $(foreach f,$(__hostprogs), $(if $(dir $(f)),$(dir $(f)))) |
diff --git a/scripts/hdrcheck.sh b/scripts/hdrcheck.sh index b3bb683b56b6..b5ca35aa1741 100755 --- a/scripts/hdrcheck.sh +++ b/scripts/hdrcheck.sh | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | for FILE in `grep '^#include <' $2 | cut -f2 -d\< | cut -f1 -d\> | egrep ^linux\|^asm` ; do | 3 | for FILE in `grep '^[ \t]*#[ \t]*include[ \t]*<' $2 | cut -f2 -d\< | cut -f1 -d\> | egrep ^linux\|^asm` ; do |
| 4 | if [ ! -r $1/$FILE ]; then | 4 | if [ ! -r $1/$FILE ]; then |
| 5 | echo $2 requires $FILE, which does not exist | 5 | echo $2 requires $FILE, which does not exist in exported headers |
| 6 | exit 1 | 6 | exit 1 |
| 7 | fi | 7 | fi |
| 8 | done | 8 | done |
