Skip to content
Snippets Groups Projects
Commit 93e46769 authored by Mikael Asplund's avatar Mikael Asplund
Browse files

Updated to work at home

parent b71ab64e
Branches
Tags
No related merge requests found
COMPONENT=BlinkTaskAppC COMPONENT=BlinkTaskAppC
TINYOS_ROOT_DIR?=/courses/TDDI07/tinyos-main
include $(TINYOS_ROOT_DIR)/Makefile.include include $(TINYOS_ROOT_DIR)/Makefile.include
COMPONENT=PhotoMeterAppC COMPONENT=PhotoMeterAppC
TINYOS_ROOT_DIR?=/courses/TDDI07/tinyos-main
CFLAGS += -I$(TINYOS_ROOT_DIR)/tos/lib/printf CFLAGS += -I$(TINYOS_ROOT_DIR)/tos/lib/printf
include $(TINYOS_ROOT_DIR)/Makefile.include include $(TINYOS_ROOT_DIR)/Makefile.include
COMPONENT=TrafficLightAppC COMPONENT=TrafficLightAppC
TINYOS_ROOT_DIR?=/courses/TDDI07/tinyos-main
CFLAGS += -I$(TINYOS_ROOT_DIR)/tos/lib/printf CFLAGS += -I$(TINYOS_ROOT_DIR)/tos/lib/printf
PFLAGS = -DCC2420_DEF_CHANNEL=26 PFLAGS = -DCC2420_DEF_CHANNEL=26
......
COMPONENT=EnergyLPLAppC COMPONENT=EnergyLPLAppC
TINYOS_ROOT_DIR?=/courses/TDDI07/tinyos-main
CFLAGS += -I$(TINYOS_ROOT_DIR)/tos/lib/printf CFLAGS += -I$(TINYOS_ROOT_DIR)/tos/lib/printf
CFLAGS += -DLOW_POWER_LISTENING CFLAGS += -DLOW_POWER_LISTENING
......
export TINYOS_ROOT_DIR=/courses/TDDI07/tinyos-main
export PATH=$PATH:/courses/TDDI07/tinyos-tools/bin export PATH=$PATH:/courses/TDDI07/tinyos-tools/bin
export CLASSPATH=/courses/TDDI07/tinyos-tools/lib/java/tinyos.jar:. export CLASSPATH=/courses/TDDI07/tinyos-tools/lib/java/tinyos.jar:.
#Note the current version of tinyos tools is not compatible with Java v. 14 and higher
sudo apt install build-essential python2.7 python-dev gcc-msp430 autoconf java-common openjdk-13-jdk emacs gperf bison flex
wget https://www.ida.liu.se/~TDDI07/labs/files/tinyos-main.zip
unzip tinyos-main.zip
git clone https://github.com/tinyos/nesc
cd nesc
./Bootstrap
./configure
make
sudo make install
cd ..
cd tinyos-main/tools
./Bootstrap
./configure
make
sudo make install
export TINYOS_ROOT_DIR=$HOME/tinyos-lab/tinyos-main
export CLASSPATH=$HOME/tinyos-lab/tinyos-main/tools/lib/java/tinyos.jar:.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment