mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
Fix the issue of complete rebuild for any change
Signed-off-by Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
1 parent
6dfdc5d0cd
commit
a570f1c3ac
1 file changed
+3
-4
@@ -34,13 +34,13 @@ default: $(OBJS) head.o ia64lib.o xen.lds.s
|
||||
> $(BASEDIR)/System.map
|
||||
|
||||
|
||||
asm-offsets.s: asm-offsets.c $(BASEDIR)/include/asm-ia64/.offsets.h.stamp asm-xsi-offsets.h
|
||||
asm-offsets.s: asm-offsets.c $(BASEDIR)/include/asm-ia64/.offsets.h.stamp $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h
|
||||
$(CC) $(CFLAGS) -S -o $@ $<
|
||||
|
||||
asm-xsi-offsets.s: asm-xsi-offsets.c
|
||||
$(CC) $(CFLAGS) -S -o $@ $<
|
||||
|
||||
asm-xsi-offsets.h: asm-xsi-offsets.s
|
||||
$(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h: asm-xsi-offsets.s
|
||||
@(set -e; \
|
||||
echo "/*"; \
|
||||
echo " * DO NOT MODIFY."; \
|
||||
@@ -55,7 +55,6 @@ asm-xsi-offsets.h: asm-xsi-offsets.s
|
||||
sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}"; \
|
||||
echo ""; \
|
||||
echo "#endif") <$< >$@
|
||||
mv $@ $(BASEDIR)/include/asm
|
||||
|
||||
$(BASEDIR)/include/asm-ia64/.offsets.h.stamp:
|
||||
# Need such symbol link to make linux headers available
|
||||
@@ -80,7 +79,7 @@ ia64lib.o:
|
||||
|
||||
clean:
|
||||
rm -f *.o *~ core xen.lds.s $(BASEDIR)/include/asm-ia64/.offsets.h.stamp asm-offsets.s
|
||||
rm -f asm-xsi-offsets.s
|
||||
rm -f asm-xsi-offsets.s $(BASEDIR)/include/asm-ia64/asm-xsi-offsets.h
|
||||
rm -f lib/*.o
|
||||
|
||||
# setup.o contains bits of compile.h so it must be blown away
|
||||
|
||||