-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
52 lines (43 loc) · 959 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
41
42
43
44
45
46
47
48
49
50
51
52
################################################
#Make files fo compile wive-ng router firmware.#
################################################
all:
make linux
make modules
make root
make split
clean:
PWD=`pwd`
echo "Clean temporary files..."
make -C APP clean
rm -rf ./images/*
rm -rf ./ro_root/*
rm -rf ./rw_root/*
echo > kernel/.config
make -C kernel mrproper
rm -rf ./kernel/modules_installmake/*
make -C tools clean
find ${PWD}/APP -name '*.o' | xargs rm -f
find ${PWD} -name '*.log' | xargs rm -f
find ${PWD} -name '*.old' | xargs rm -f
linux:
make tools
make -C kernel oldconfig
make -C kernel dep
make -C kernel all
make -C kernel/rtkload bz2
modules:
make -C kernel modules
make -C kernel modules_install
cd kernel; ./strip_modules; cd ..
root:
make -C APP
make -C APP install
@./mkimg
split:
cd ./tools; ./splitinone.pl
mv ./tools/wive*.bin ./images/
tools:
make -C tools
dirs:
mkdir -p `cat dirs_struct`