-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (34 loc) · 1.14 KB
/
Copy pathMakefile
File metadata and controls
41 lines (34 loc) · 1.14 KB
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
41
SUBDIRS = libs/OMXHelper Recorder UPSPico
export BUILDROOTDIR = $(CURDIR)/buildroot
export SKELDIR = $(CURDIR)/skel
export OUTPUTDIR = $(SKELDIR)/dashpi
export OUTBINDIR = $(OUTPUTDIR)/bin
export OUTLIBDIR = $(OUTPUTDIR)/lib
export ROOTDIR = $(BUILDROOTDIR)/output/target
export IMAGEDIR = $(BUILDROOTDIR)/output/images
export BUILDCC = $(BUILDROOTDIR)/output/host/usr/bin/arm-linux-gcc
export BUILDCXX = $(BUILDROOTDIR)/output/host/usr/bin/arm-linux-g++
export BUILDAR = $(BUILDROOTDIR)/output/host/usr/bin/arm-linux-ar
export CFLAGS = -mfloat-abi=hard -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk
export CXXFLAGS = -mfloat-abi=hard -mfpu=vfp -mtune=arm1176jzf-s -march=armv6zk
default: all
all:
rm -rf $(OUTPUTDIR)/bin/*
mkdir -p $(OUTBINDIR)
mkdir -p $(OUTLIBDIR)
mkdir -p $(SKELDIR)/recordings
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) clean && $(MAKE)) \
done;
(cd $(BUILDROOTDIR);make)
cp buildroot/output/images/zImage .
setup:
./checkconfig.sh
(cd $(BUILDROOTDIR);make)
clean:
for subdir in $(SUBDIRS); do \
(cd $$subdir && $(MAKE) clean) \
done;
rm -rf $(OUTBINDIR)
rm -rf $(OUTLIBDIR)
rm -f zImage