Define MAP_KERNEL_START by resolving MODULES_END at cmake time
Change-Id: Ib88fc045b64c4ad2dad6a4b13cb0372a735a26ab
This commit is contained in:
committed by
Masamichi Takagi
parent
33eef71133
commit
04d17dd3e9
9
tools/crash/CMakeLists.txt
Normal file
9
tools/crash/CMakeLists.txt
Normal file
@ -0,0 +1,9 @@
|
||||
configure_file(mckernel.mk.in mckernel.mk @ONLY)
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mckernel.mk
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/tool/crash/)
|
||||
|
||||
foreach(file IN ITEMS mckernel.c README)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${file}
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/tool/crash/)
|
||||
endforeach()
|
||||
@ -83,7 +83,7 @@ static struct mck_size_table {
|
||||
|
||||
#ifdef X86_64
|
||||
#define MAP_FIXED_START 0xffff860000000000UL
|
||||
#define MAP_KERNEL_START 0xffffffff80000000UL
|
||||
/* MAP_KERNEL_START is defined by cmake */
|
||||
#define MAP_ST_START 0xffff800000000000UL
|
||||
unsigned long LINUX_PAGE_OFFSET = -1UL;
|
||||
unsigned long x86_kernel_phys_base = -1UL;
|
||||
|
||||
@ -51,4 +51,4 @@ endif
|
||||
all: mckernel.so
|
||||
|
||||
mckernel.so: $(INCDIR)/defs.h mckernel.c
|
||||
gcc -Wall -g -I$(INCDIR) -shared -rdynamic -o mckernel.so mckernel.c -fPIC -D$(TARGET) $(TARGET_CFLAGS) $(GDB_FLAGS)
|
||||
gcc -Wall -g -I$(INCDIR) -shared -rdynamic -o mckernel.so mckernel.c -fPIC -D$(TARGET) -DMAP_KERNEL_START=@MAP_KERNEL_START@UL $(TARGET_CFLAGS) $(GDB_FLAGS)
|
||||
Reference in New Issue
Block a user