Changeset 1847 for Whitix/trunk/Makefile

Show
Ignore:
Timestamp:
01/24/09 13:21:11 (3 years ago)
Author:
mwhitworth
Message:

Add post build commands for extracting or stripping debug info.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/Makefile

    r1704 r1847  
    88#Change to N to produce a smaller kernel if debug functionality is not required 
    99CONFIG_ALLSYMS = Y 
     10DEBUG_FILE = N 
     11 
     12ifeq ($(DEBUG_FILE), Y) 
     13        POST_BUILD = objcopy --only-keep-debug kern kern.debug; strip kern; objcopy --add-gnu-debuglink=kern.debug kern 
     14else 
     15        POST_BUILD = strip -g kern; 
     16endif 
    1017 
    1118PWD = $(shell pwd) 
     
    6067         devices/kedev/*.o devices/acpi/*.o devices/misc/*.o kernel/*.o lib/*.o memory/*.o video/*.o \ 
    6168          -o kern > kernel.txt 
     69        $(POST_BUILD) 
    6270        mkdir -p $(DIRMODULES) 
    6371        $(MAKE) -C net modules_install