Makefile
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:1k
- #
- # linux/arch/arm/boot/bootp/Makefile
- #
- ZSYSTEM =$(TOPDIR)/arch/arm/boot/zImage
- ZLDFLAGS =-p -X -T bootp.lds
- --defsym initrd_addr=$(INITRD_PHYS)
- --defsym params=$(PARAMS_PHYS)
- --defsym kernel_addr=$(ZTEXTADDR)
- all: bootp
- # Note that bootp.lds picks up kernel.o and initrd.o
- bootp: init.o kernel.o initrd.o bootp.lds
- $(LD) $(ZLDFLAGS) -o $@ init.o
- kernel.o: $(ZSYSTEM)
- $(LD) -r -s -o $@ -b binary $(ZSYSTEM)
- initrd.o: $(INITRD)
- $(LD) -r -s -o $@ -b binary $(INITRD)
- .PHONY: $(INITRD) $(ZSYSTEM)
- clean:; $(RM) bootp