-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
40 lines (32 loc) · 997 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SRCDIR=antares
GITURL=https://[email protected]/nekromant/antares.git
OBJDIR=.
TMPDIR=tmp
TOPDIR=.
project_sources=src
ANTARES_DIR:=./antares
# Set to y, if your project ships it's own ARCH dir,
# and doesn't want to use in-tree arches. Normally you would
# say n here. See docs for special uses.
PROJECT_SHIPS_ARCH=n
ifeq ($(ANTARES_INSTALL_DIR),)
antares:
git clone $(GITURL) $(ANTARES_DIR)
@echo "I have fetched the antares sources for you to $(ANTARES_DIR)"
@echo "Please, re-run make"
else
antares:
ln -sf $(ANTARES_INSTALL_DIR) $(ANTARES_DIR)
@echo "Using global antares installation: $(ANTARES_INSTALL_DIR)"
@echo "Symlinking done, please re-run make"
endif
-include antares/Makefile
# You can define any custom make rules right here!
# They will can be later hooked as default make target
# in menuconfig
define extract_section
objcopy -j .data --set-section-flags=.eeprom="alloc,load" \
--no-change-warnings \
-Obinary descr.elf $(@)
endef
ipage.bin: descriptor.c