-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (43 loc) · 1.72 KB
/
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
all: opendaylight openvswitch
openvswitch:
cd ovs; \
./boot.sh; \
./configure KARCH=arm \
CPP="arm-none-linux-gnueabi-gcc -E" \
AR="arm-none-linux-gnueabi-ar" \
STRIP="arm-none-linux-gnueabi-strip" \
OBJCOPY="arm-none-linux-gnueabi-objcopy" \
LD="arm-none-linux-gnueabi-ld" \
OBJDUMP="arm-none-linux-gnueabi-objdump" \
CC="arm-none-linux-gnueabi-gcc" \
CXX="arm-none-linux-gnueabi-g++" \
NM="arm-none-linux-gnueabi-nm" \
AS="arm-none-linux-gnueabi-as" \
CFLAGS="-march=armv5 -std=gnu99" \
CCFLAGS="-march=armv5 -std=gnu99" \
CXXFLAGS="-march=armv5 -std=gnu99s" \
--host=arm --with-openssl=../../node/deps/openssl --prefix=$$PWD/../../rootfs/fs/usr/local;\
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- \
CPP="arm-none-linux-gnueabi-gcc -E" \
AR="arm-none-linux-gnueabi-ar" \
STRIP="arm-none-linux-gnueabi-strip" \
OBJCOPY="arm-none-linux-gnueabi-objcopy" \
LD="arm-none-linux-gnueabi-ld" \
OBJDUMP="arm-none-linux-gnueabi-objdump" \
CC="arm-none-linux-gnueabi-gcc" \
CXX="arm-none-linux-gnueabi-g++" \
NM="arm-none-linux-gnueabi-nm" \
AS="arm-none-linux-gnueabi-as" \
CFLAGS="-march=armv5 -std=gnu99" \
CCFLAGS="-march=armv5 -std=gnu99" \
CXXFLAGS="-march=armv5 -std=gnu99"
opendaylight.tar.gz:
wget -c -t 0 -O opendaylight.tar.gz https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.4.1-Beryllium-SR1/distribution-karaf-0.4.1-Beryllium-SR1.tar.gz
opendaylight:opendaylight.tar.gz
tar -vxf opendaylight.tar.gz opendaylight/; rm opendaylight.tar.gz
clean:
rm -rf opendaylight
format: clean
find . -name "*.js" -exec js-beautify -r {} \;
find . -name "*.html" -exec html-beautify -r {} \;
find . -name "*.css" -exec css-beautify -r {} \;