zImage生成命令行

main.o=
 usr/built-in.o \ 
 arch/arm/kernel/built-in.o \
 arch/arm/mm/built-in.o  \
 arch/arm/common/built-in.o \ 
 arch/arm/mach-s5p6450/built-in.o  \
 arch/arm/plat-s5p/built-in.o  \
 arch/arm/plat-samsung/built-in.o \
 arch/arm/nwfpe/built-in.o  \
 arch/arm/vfp/built-in.o  \
 kernel/built-in.o  \
 mm/built-in.o  \
 fs/built-in.o  \
 ipc/built-in.o  \
 security/built-in.o \
 crypto/built-in.o  \
 block/built-in.o  \
 arch/arm/lib/lib.a \
 lib/lib.a  \
 arch/arm/lib/built-in.o \
 lib/built-in.o  \
 drivers/built-in.o \
 sound/built-in.o  \
 firmware/built-in.o \
 net/built-in.o
 
arm-none-linux-gnueabi-ld -EL  -r -o vmlinux.o
 arch/arm/kernel/head.o arch/arm/kernel/init_task.o 
 init/built-in.o
 --start-group 
 main.o
 --end-group

arm-none-linux-gnueabi-ld -EL  -p --no-undefined -X --build-id -o .tmp_vmlinux1 
 -T arch/arm/kernel/vmlinux.lds
 arch/arm/kernel/head.o
 arch/arm/kernel/init_task.o 
 init/built-in.o
 --start-group 
 main.o
 --end-group
 
arm-none-linux-gnueabi-nm -n .tmp_vmlinux1 | scripts/kallsyms --all-symbols > .tmp_kallsyms1.S
arm-none-linux-gnueabi-gcc -c -o .tmp_kallsyms1.o .tmp_kallsyms1.S
 
arm-none-linux-gnueabi-ld -EL  -p --no-undefined -X --build-id -o .tmp_vmlinux2
 -T arch/arm/kernel/vmlinux.lds
 arch/arm/kernel/head.o
 arch/arm/kernel/init_task.o 
 init/built-in.o
 --start-group 
 main.o
 --end-group
 .tmp_kallsyms1.o
 
arm-none-linux-gnueabi-nm -n .tmp_vmlinux2 | scripts/kallsyms --all-symbols > .tmp_kallsyms2.S  
arm-none-linux-gnueabi-gcc -c -o .tmp_kallsyms2.o .tmp_kallsyms2.S
 
arm-none-linux-gnueabi-ld -EL  -p --no-undefined -X --build-id -o vmlinux
 -T arch/arm/kernel/vmlinux.lds
 arch/arm/kernel/head.o
 arch/arm/kernel/init_task.o 
 init/built-in.o
 --start-group 
 main.o
 --end-group
 .tmp_kallsyms2.o

make -f scripts/Makefile.build obj=arch/arm/boot MACHINE=arch/arm/mach-s5p6450/ arch/arm/boot/zImage

arm-none-linux-gnueabi-objcopy -O binary -R .note -R .note.gnu.build-id -R .comment -S  vmlinux arch/arm/boot/Image
 
make -f scripts/Makefile.build obj=arch/arm/boot/compressed arch/arm/boot/compressed/vmlinux

arm-none-linux-gnueabi-gcc -c -o arch/arm/boot/compressed/head.o arch/arm/boot/compressed/head.S
(cat arch/arm/boot/compressed/../Image | gzip -f -9 > arch/arm/boot/compressed/piggy.gz) || (rm -f arch/arm/boot/compressed/piggy.gz ; false)
arm-none-linux-gnueabi-gcc -c -o arch/arm/boot/compressed/piggy.o arch/arm/boot/compressed/piggy.S  // include compressed/piggy.gz"
arm-none-linux-gnueabi-gcc -c -o arch/arm/boot/compressed/misc.o arch/arm/boot/compressed/misc.c

arm-none-linux-gnueabi-ld -EL --defsym zreladdr=0x20008000 --defsym params_phys=0x20000100 -p --no-undefined
 -X ../lib/gcc/arm-none-linux-gnueabi/4.3.2/libgcc.a
 -T arch/arm/boot/compressed/vmlinux.lds
 arch/arm/boot/compressed/head.o
 arch/arm/boot/compressed/piggy.o
 arch/arm/boot/compressed/misc.o
 -o arch/arm/boot/compressed/vmlinux

arm-none-linux-gnueabi-objcopy -O binary -R .note -R .note.gnu.build-id -R .comment -S  arch/arm/boot/compressed/vmlinux arch/arm/boot/zImage

 

你可能感兴趣的:(zImage生成命令行)