Commit 0d899e26 authored by Russell King's avatar Russell King

[ARM] Makefile and page.h ARM updates for 2.5.20

parent a9907091
...@@ -201,15 +201,30 @@ MAKETOOLS =$(MAKE) -C arch/$(ARCH)/tools ...@@ -201,15 +201,30 @@ MAKETOOLS =$(MAKE) -C arch/$(ARCH)/tools
$(patsubst %,_dir_%, $(SUBDIRS)): maketools $(patsubst %,_dir_%, $(SUBDIRS)): maketools
$(patsubst %,_modsubdir_%,$(MOD_DIRS)): maketools $(patsubst %,_modsubdir_%,$(MOD_DIRS)): maketools
symlinks: archsymlinks # Update machine arch and proc symlinks if something which affects
# them changed. We use .arch and .proc to indicate when they were
# updated last, otherwise make uses the target directory mtime.
archsymlinks: include/asm-arm/.arch: $(wildcard include/config/arch/*.h)
$(RM) include/asm-arm/arch include/asm-arm/proc @echo 'Making asm-arm/arch -> asm-arm/arch-$(INCDIR) symlink'
(cd include/asm-arm; ln -sf arch-$(INCDIR) arch; ln -sf proc-$(PROCESSOR) proc) @rm -f include/asm-arm/arch
@ln -sf arch-$(INCDIR) include/asm-arm/arch
@touch $@
include/asm-arm/.proc: $(wildcard include/config/cpu/32.h) $(wildcard include/config/cpu/26.h)
@echo 'Making asm-arm/proc -> asm-arm/proc-$(PROCESSOR) symlink'
@rm -f include/asm-arm/proc
@ln -sf proc-$(PROCESSOR) include/asm-arm/proc
@touch $@
.hdepend: include/asm-arm/.arch include/asm-arm/.proc
vmlinux: arch/arm/vmlinux.lds vmlinux: arch/arm/vmlinux.lds
arch/arm/vmlinux.lds: $(LDSCRIPT) FORCE arch/arm/vmlinux.lds: arch/arm/Makefile $(LDSCRIPT) \
$(wildcard include/config/cpu/32.h) \
$(wildcard include/config/cpu/26.h) \
$(wildcard include/config/arch/*.h)
@sed 's/TEXTADDR/$(TEXTADDR)/;s/DATAADDR/$(DATAADDR)/' $(LDSCRIPT) >$@ @sed 's/TEXTADDR/$(TEXTADDR)/;s/DATAADDR/$(DATAADDR)/' $(LDSCRIPT) >$@
bzImage zImage zinstall Image bootpImage install: vmlinux bzImage zImage zinstall Image bootpImage install: vmlinux
...@@ -220,39 +235,26 @@ CLEAN_FILES += \ ...@@ -220,39 +235,26 @@ CLEAN_FILES += \
MRPROPER_FILES += \ MRPROPER_FILES += \
arch/arm/tools/constants.h* \ arch/arm/tools/constants.h* \
include/asm-arm/arch \ include/asm-arm/arch include/asm-arm/.arch \
include/asm-arm/proc \ include/asm-arm/proc include/asm-arm/.proc \
include/asm-arm/constants.h* \ include/asm-arm/constants.h* \
include/asm-arm/mach-types.h include/asm-arm/mach-types.h
# We use MRPROPER_FILES and CLEAN_FILES now # We use MRPROPER_FILES and CLEAN_FILES now
archmrproper: archmrproper: FORCE
@/bin/true @/bin/true
archclean: archclean: FORCE
@$(MAKEBOOT) clean @$(MAKEBOOT) clean
archdep: scripts/mkdep archsymlinks archdep: FORCE
@$(MAKETOOLS) dep @$(MAKETOOLS) dep
@$(MAKEBOOT) dep @$(MAKEBOOT) dep
# we need version.h # we need version.h
maketools: checkbin include/linux/version.h maketools: include/linux/version.h FORCE
@$(MAKETOOLS) all @$(MAKETOOLS) all
# Ensure this is ld "2.9.4" or later
NEW_LINKER := $(shell $(LD) --gc-sections --version >/dev/null 2>&1; echo $$?)
ifneq ($(NEW_LINKER),0)
checkbin:
@echo '*** ${VERSION}.${PATCHLEVEL} kernels no longer build correctly with old versions of binutils.'
@echo '*** Please upgrade your binutils to 2.9.5.'
@false
else
checkbin:
@true
endif
# My testing targets (that short circuit a few dependencies) # My testing targets (that short circuit a few dependencies)
zImg:; @$(MAKEBOOT) zImage zImg:; @$(MAKEBOOT) zImage
Img:; @$(MAKEBOOT) Image Img:; @$(MAKEBOOT) Image
......
...@@ -30,14 +30,14 @@ extern void __cpu_copy_user_page(void *to, const void *from, ...@@ -30,14 +30,14 @@ extern void __cpu_copy_user_page(void *to, const void *from,
unsigned long user); unsigned long user);
#endif #endif
#define clear_user_page(addr,vaddr) \ #define clear_user_page(addr,vaddr,pg) \
do { \ do { \
preempt_disable(); \ preempt_disable(); \
__cpu_clear_user_page(addr, vaddr); \ __cpu_clear_user_page(addr, vaddr); \
preempt_enable(); \ preempt_enable(); \
} while (0) } while (0)
#define copy_user_page(to,from,vaddr) \ #define copy_user_page(to,from,vaddr,pg) \
do { \ do { \
preempt_disable(); \ preempt_disable(); \
__cpu_copy_user_page(to, from, vaddr); \ __cpu_copy_user_page(to, from, vaddr); \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment