forked from xuos/xiuos
				
			modify makefile
This commit is contained in:
		
							parent
							
								
									0acf8c26be
								
							
						
					
					
						commit
						aabb860bb2
					
				| 
						 | 
				
			
			@ -53,11 +53,16 @@ arch_usyscall = $(KERNEL_ROOT)/services/app/arch_usyscall.o
 | 
			
		|||
session = $(KERNEL_ROOT)/services/app/session.o
 | 
			
		||||
libipc = $(KERNEL_ROOT)/services/app/libipc.o
 | 
			
		||||
 | 
			
		||||
lwip: COMPILER lwip_server.o
 | 
			
		||||
lwip: COMPILER lwip_server.o | bin
 | 
			
		||||
	@${ld} ${user_ldflags} -e main -o $@ ${api} ${core} ${ipv4} ${netif} lwip_service.o lwip_server.o \
 | 
			
		||||
		${board_specs} ${libserial} ${printf} ${libmem} ${usyscall} ${arch_usyscall} ${arch_usyscall} \
 | 
			
		||||
		${session} ${libipc}
 | 
			
		||||
	@${objdump} -S $@ > $@.asm
 | 
			
		||||
	@mv *.o bin
 | 
			
		||||
	@mv *.asm bin
 | 
			
		||||
 | 
			
		||||
bin:
 | 
			
		||||
	@mkdir -p bin
 | 
			
		||||
 | 
			
		||||
%.o: %.c
 | 
			
		||||
	@echo "cc $^"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
ifeq ($(BOARD), imx6q-sabrelite)
 | 
			
		||||
toolchain ?= arm-none-eabi-
 | 
			
		||||
user_ldflags = -N -Ttext 0
 | 
			
		||||
user_ldflags = --specs=nosys.specs -Wl,-Map=user.map,-cref
 | 
			
		||||
cflags = -std=c11 -march=armv7-a -mtune=cortex-a9 -nostdlib -ffreestanding -nodefaultlibs -mfloat-abi=soft -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -ggdb -Wno-unused -Werror -fno-omit-frame-pointer -fno-stack-protector -fno-pie
 | 
			
		||||
endif
 | 
			
		||||
ifeq ($(BOARD), zynq7000-zc702)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue