Commit 79b68346 authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

FM PTS Makefile made more generic

parent a9a7a385
BOARD = T485
# NOTE: advised to use lower-case for board name
BOARD = t485
ELMAIP =
ELMAPWD =
ELMASLOT =
all:
mkdir -p ubuntu/t485/log
touch ubuntu/t485/log/fan-speeds
mkdir -p ubuntu/$(BOARD)/log
touch ubuntu/$(BOARD)/log/fan-speeds
cp -r shell/ ubuntu/t485/
cp -r shell/ ubuntu/$(BOARD)/
mkdir -p ubuntu/t485/pyts/
cp python/* ubuntu/t485/pyts/
mkdir -p ubuntu/$(BOARD)/pyts/
cp python/* ubuntu/$(BOARD)/pyts/
chmod +x rename; ./rename $(BOARD) $(ELMAIP) $(ELMAPWD) $(ELMASLOT)
cp ubuntu/t485/pyts/pts.py ubuntu/t485/pts
cp ubuntu/t485/pyts/jpts.py ubuntu/t485/jpts
ln -s pyts/dac_vcxo_pll.py ubuntu/t485/test01.py
ln -s pyts/leds.py ubuntu/t485/test02.py
ln -s pyts/ttl_pulse_switch.py ubuntu/t485/test03.py
ln -s pyts/rs485_pulse_rtm.py ubuntu/t485/test04.py
ln -s pyts/therm_id.py ubuntu/t485/test05.py
ln -s pyts/sfp_eeprom.py ubuntu/t485/test06.py
ln -s pyts/sfp_test.py ubuntu/t485/test07.py
ln -s pyts/flashtest.py ubuntu/t485/flashtest.py
mkdir -p ubuntu/t485/boot
mv ubuntu/t485/shell/program ubuntu/t485/boot
mv ubuntu/t485/shell/flash ubuntu/t485/boot
wget -P ubuntu/t485/boot http://www.ohwr.org/attachments/download/3690/pts.bit
wget -P ubuntu/t485/boot http://www.ohwr.org/attachments/download/3650/flash_load.bit
wget -P ubuntu/t485/boot http://www.ohwr.org/attachments/download/3657/golden-v0.0_release-v1.0.bin
chmod +x ubuntu/t485/shell/*
chmod +x ubuntu/t485/boot/*
chmod +x ubuntu/t485/jpts
chmod +x ubuntu/t485/pts
cp ubuntu/$(BOARD)/pyts/pts.py ubuntu/$(BOARD)/pts
cp ubuntu/$(BOARD)/pyts/jpts.py ubuntu/$(BOARD)/jpts
ln -s pyts/dac_vcxo_pll.py ubuntu/$(BOARD)/test01.py
ln -s pyts/leds.py ubuntu/$(BOARD)/test02.py
ln -s pyts/ttl_pulse_switch.py ubuntu/$(BOARD)/test03.py
ln -s pyts/rs485_pulse_rtm.py ubuntu/$(BOARD)/test04.py
ln -s pyts/therm_id.py ubuntu/$(BOARD)/test05.py
ln -s pyts/sfp_eeprom.py ubuntu/$(BOARD)/test06.py
ln -s pyts/sfp_test.py ubuntu/$(BOARD)/test07.py
ln -s pyts/flashtest.py ubuntu/$(BOARD)/flashtest.py
mkdir -p ubuntu/$(BOARD)/boot
mv ubuntu/$(BOARD)/shell/program ubuntu/$(BOARD)/boot
mv ubuntu/$(BOARD)/shell/flash ubuntu/$(BOARD)/boot
wget -P ubuntu/$(BOARD)/boot http://www.ohwr.org/attachments/download/3690/pts.bit
wget -P ubuntu/$(BOARD)/boot http://www.ohwr.org/attachments/download/3650/flash_load.bit
wget -P ubuntu/$(BOARD)/boot http://www.ohwr.org/attachments/download/3657/golden-v0.0_release-v1.0.bin
chmod +x ubuntu/$(BOARD)/shell/*
chmod +x ubuntu/$(BOARD)/boot/*
chmod +x ubuntu/$(BOARD)/jpts
chmod +x ubuntu/$(BOARD)/pts
clean:
rm -rf ubuntu/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment