-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.mk
32 lines (27 loc) · 1.01 KB
/
install.mk
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
.PHONY=install_bitmap install_modules install_device
IP=192.168.0.3
ETHERNET_DEVICE=eth1
install_bitmap : $(BITMAP)
cp $(BITMAP) /srv/tftp
ifconfig $(ETHERNET_DEVICE) $(IP) up
sed -e 's/BITMAP/$(BITMAP)/g' -e 's/IP/$(IP)/' $(DEVEL_BASE)/kermit_fpga_install \
| kermit -q -y $(DEVEL_BASE)/configs/kermrc -c
install_modules : $(MODULES)
cp $(MODULES) /srv/tftp
ifconfig $(ETHERNET_DEVICE) $(IP) up
for i in $(MODULES) ; do \
sed -e "s/MODULE/$$i/g" -e 's/IP/$(IP)/' $(DEVEL_BASE)/kermit_module_install \
| kermit -q -y $(DEVEL_BASE)/configs/kermrc -c ; \
done
install_device :
sed -e 's/DEVICE/$(DEVICE)/g' \
-e 's/MAJOR/$(MAJOR)/' \
-e 's/MINOR/$(MINOR)/' $(DEVEL_BASE)/kermit_device_install \
| kermit -q -y $(DEVEL_BASE)/configs/kermrc -c
install_programs : $(PROGS)
cp $(PROGS) /srv/tftp
ifconfig $(ETHERNET_DEVICE) $(IP) up
for i in $(PROGS) ; do \
sed -e "s/PROGRAM/$$i/g" -e 's/IP/$(IP)/' $(DEVEL_BASE)/kermit_prog_install \
| kermit -q -y $(DEVEL_BASE)/configs/kermrc -c ; \
done