Commit fb58bca2 authored by David Mosberger's avatar David Mosberger

ia64: Minor Makefile cleanup. Mention CONFIG_NUMA option in defconfig.

parent 1e4cb7c8
...@@ -8,11 +8,9 @@ ...@@ -8,11 +8,9 @@
# Copyright (C) 1998 by David Mosberger-Tang <davidm@hpl.hp.com> # Copyright (C) 1998 by David Mosberger-Tang <davidm@hpl.hp.com>
# #
THIS = arch/$(ARCH)/boot LINKFLAGS = -static -T $(src)/bootloader.lds
LINKFLAGS = -static -T $(THIS)/bootloader.lds OBJS = $(obj)/bootloader.o
OBJS = $(THIS)/bootloader.o
targets-$(CONFIG_IA64_HP_SIM) += bootloader targets-$(CONFIG_IA64_HP_SIM) += bootloader
targets-$(CONFIG_IA64_GENERIC) += bootloader targets-$(CONFIG_IA64_GENERIC) += bootloader
......
...@@ -50,6 +50,7 @@ CONFIG_ACPI_KERNEL_CONFIG=y ...@@ -50,6 +50,7 @@ CONFIG_ACPI_KERNEL_CONFIG=y
CONFIG_IA64_BRL_EMU=y CONFIG_IA64_BRL_EMU=y
# CONFIG_ITANIUM_BSTEP_SPECIFIC is not set # CONFIG_ITANIUM_BSTEP_SPECIFIC is not set
CONFIG_IA64_L1_CACHE_SHIFT=6 CONFIG_IA64_L1_CACHE_SHIFT=6
# CONFIG_NUMA is not set
CONFIG_IA64_MCA=y CONFIG_IA64_MCA=y
CONFIG_PM=y CONFIG_PM=y
CONFIG_IOSAPIC=y CONFIG_IOSAPIC=y
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
# Makefile for ia64-specific library routines.. # Makefile for ia64-specific library routines..
# #
THIS = arch/$(ARCH)/lib
L_TARGET = lib.a L_TARGET = lib.a
export-objs := swiotlb.o export-objs := swiotlb.o
...@@ -34,26 +32,26 @@ AFLAGS___udivsi3.o = -DUNSIGNED ...@@ -34,26 +32,26 @@ AFLAGS___udivsi3.o = -DUNSIGNED
AFLAGS___modsi3.o = -DMODULO AFLAGS___modsi3.o = -DMODULO
AFLAGS___umodsi3.o = -DUNSIGNED -DMODULO AFLAGS___umodsi3.o = -DUNSIGNED -DMODULO
$(THIS)/__divdi3.o: $(THIS)/idiv64.S $(obj)/__divdi3.o: $(src)/idiv64.S
$(cmd_as_o_S) $(cmd_as_o_S)
$(THIS)/__udivdi3.o: $(THIS)/idiv64.S $(obj)/__udivdi3.o: $(src)/idiv64.S
$(cmd_as_o_S) $(cmd_as_o_S)
$(THIS)/__moddi3.o: $(THIS)/idiv64.S $(obj)/__moddi3.o: $(src)/idiv64.S
$(cmd_as_o_S) $(cmd_as_o_S)
$(THIS)/__umoddi3.o: $(THIS)/idiv64.S $(obj)/__umoddi3.o: $(src)/idiv64.S
$(cmd_as_o_S) $(cmd_as_o_S)
$(THIS)/__divsi3.o: $(THIS)/idiv32.S $(obj)/__divsi3.o: $(src)/idiv32.S
$(cmd_as_o_S) $(cmd_as_o_S)
$(THIS)/__udivsi3.o: $(THIS)/idiv32.S $(obj)/__udivsi3.o: $(src)/idiv32.S
$(cmd_as_o_S) $(cmd_as_o_S)
$(THIS)/__modsi3.o: $(THIS)/idiv32.S $(obj)/__modsi3.o: $(src)/idiv32.S
$(cmd_as_o_S) $(cmd_as_o_S)
$(THIS)/__umodsi3.o: $(THIS)/idiv32.S $(obj)/__umodsi3.o: $(src)/idiv32.S
$(cmd_as_o_S) $(cmd_as_o_S)
CFLAGS = -g -O2 -Wall $(CPPFLAGS) CFLAGS = -g -O2 -Wall $(CPPFLAGS)
THIS = arch/$(ARCH)/tools
TARGET = $(TOPDIR)/include/asm-ia64/offsets.h TARGET = $(TOPDIR)/include/asm-ia64/offsets.h
src = $(obj)
all: all:
fastdep: fastdep:
...@@ -10,13 +11,12 @@ fastdep: ...@@ -10,13 +11,12 @@ fastdep:
mrproper: clean mrproper: clean
clean: clean:
rm -f $(THIS)/print_offsets.s $(THIS)/print_offsets $(THIS)/offsets.h rm -f $(obj)/print_offsets.s $(obj)/print_offsets $(obj)/offsets.h
$(TARGET): $(THIS)/offsets.h $(TARGET): $(obj)/offsets.h
echo here we go @if ! cmp -s $(obj)/offsets.h ${TARGET}; then \
if ! cmp -s $(THIS)/offsets.h ${TARGET}; then \
echo -e "*** Updating ${TARGET}..."; \ echo -e "*** Updating ${TARGET}..."; \
cp $(THIS)/offsets.h ${TARGET}; \ cp $(obj)/offsets.h ${TARGET}; \
else \ else \
echo "*** ${TARGET} is up to date"; \ echo "*** ${TARGET} is up to date"; \
fi fi
...@@ -32,23 +32,23 @@ $(TARGET): $(THIS)/offsets.h ...@@ -32,23 +32,23 @@ $(TARGET): $(THIS)/offsets.h
ifeq ($(CROSS_COMPILE),) ifeq ($(CROSS_COMPILE),)
$(THIS)/offsets.h: $(THIS)/print_offsets $(obj)/offsets.h: $(obj)/print_offsets
$(THIS)/print_offsets > $(THIS)/offsets.h $(obj)/print_offsets > $(obj)/offsets.h
comma := , comma := ,
$(THIS)/print_offsets: $(THIS)/print_offsets.c FORCE $(obj)/print_offsets: $(src)/print_offsets.c FORCE
$(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) \ $(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) \
$(THIS)/print_offsets.c -o $@ $(src)/print_offsets.c -o $@
FORCE: FORCE:
else else
$(THIS)/offsets.h: $(THIS)/print_offsets.s $(obj)/offsets.h: $(obj)/print_offsets.s
$(AWK) -f $(THIS)/print_offsets.awk $^ > $@ $(AWK) -f $(src)/print_offsets.awk $^ > $@
$(THIS)/print_offsets.s: $(THIS)/print_offsets.c $(obj)/print_offsets.s: $(src)/print_offsets.c
$(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -S $^ -o $@ $(CC) $(CFLAGS) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) -S $^ -o $@
endif endif
......
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