Advertisement
Guest User

Untitled

a guest
May 30th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # This file is included from loader/*/Makefile
  2. topdir=../../
  3.  
  4. include $(topdir)makefile_cam.inc
  5.  
  6. LDOPTS=-nostdlib -Wl,--allow-shlib-undefined -Wl,--no-define-common,-EL,-T,$(tools)/link-boot.ld -Wl,-N,-Ttext,$(MEMBASEADDR)
  7.  
  8. CORE_FILE=$(camfw)/main.bin
  9.  
  10. CFLAGS+=-I. -I$(camfw) -DCORE_FILE=\"$(CORE_FILE)\"
  11.  
  12. ifdef OPT_DISABLE_COMPAT_CHECK
  13. CFLAGS+=-DOPT_DISABLE_COMPAT_CHECK=$(OPT_DISABLE_COMPAT_CHECK)
  14. endif
  15.  
  16. ifdef NEED_ENCODED_DISKBOOT
  17. CFLAGS+=-DNEED_ENCODED_DISKBOOT=$(NEED_ENCODED_DISKBOOT)
  18. endif
  19.  
  20. all: main.bin
  21.  
  22. main.bin: main.elf
  23. main.elf: entry.o main.o blobs.o
  24. blobs.o: $(CORE_FILE) blobs.S
  25.  
  26. clean:
  27. rm -f *.o *.bin *.elf *.dump *.elf.syms
  28.  
  29. distclean: distclean-recursive
  30. rm -f *.o *.bin *.elf *.dump *.elf.syms
  31.  
  32. include $(topdir)bottom.inc
  33.  
  34.  
  35. # Define empty recipes for source files (including the makefiles)
  36. # to prevent make from trying implicit rules to create them. Speeds up build process
  37. ../makefile_loader.inc: ;
  38. entry.S: ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement