Commit 75dc390f authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

Setting write permission to all compiled PTS sub-folders

This is needed for user-based PTS. Without write permission to
(in particular) the log folder, a PTS system ran from its specific user
cannot gain access to the scripts stored and copied under the pts user,
which is what the current PTS setup looks like.
parent a5f09393
......@@ -15,7 +15,7 @@ all:
mkdir -p ubuntu/$(BOARD)/pyts/
cp python/* ubuntu/$(BOARD)/pyts/
chmod +x rename; ./rename $(BOARD) $(ELMAIP) $(ELMAPWD) $(ELMASLOT)
chmod a+x rename; ./rename $(BOARD) $(ELMAIP) $(ELMAPWD) $(ELMASLOT)
cp ubuntu/$(BOARD)/pyts/pts.py ubuntu/$(BOARD)/pts
cp ubuntu/$(BOARD)/pyts/jpts.py ubuntu/$(BOARD)/jpts
......@@ -36,10 +36,11 @@ all:
wget -P ubuntu/$(BOARD)/boot http://www.ohwr.org/attachments/download/3710/flash_load.bit
wget -P ubuntu/$(BOARD)/boot http://www.ohwr.org/attachments/download/3733/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
chmod a+x ubuntu/$(BOARD)/shell/*
chmod a+x ubuntu/$(BOARD)/boot/*
chmod a+x ubuntu/$(BOARD)/jpts
chmod a+x ubuntu/$(BOARD)/pts
chmod a+w ubuntu/$(BOARD)/*
tar czvf ubuntu.tar.gz ubuntu/
......
......@@ -14,7 +14,7 @@ all:
mkdir -p ubuntu/$(BOARD)/pyts/
cp python/* ubuntu/$(BOARD)/pyts/
chmod +x rename; ./rename $(BOARD) $(ELMAIP) $(ELMAPWD) $(ELMASLOT)
chmod a+x rename; ./rename $(BOARD) $(ELMAIP) $(ELMAPWD) $(ELMASLOT)
cp ubuntu/$(BOARD)/pyts/pts.py ubuntu/$(BOARD)/pts
cp ubuntu/$(BOARD)/pyts/jpts.py ubuntu/$(BOARD)/jpts
......@@ -26,10 +26,11 @@ all:
mv ubuntu/$(BOARD)/shell/flash ubuntu/$(BOARD)/boot
wget -P ubuntu/$(BOARD)/boot http://www.ohwr.org/attachments/download/3738/pts.bit
chmod +x ubuntu/$(BOARD)/shell/*
chmod +x ubuntu/$(BOARD)/boot/*
chmod +x ubuntu/$(BOARD)/jpts
chmod +x ubuntu/$(BOARD)/pts
chmod a+x ubuntu/$(BOARD)/shell/*
chmod a+x ubuntu/$(BOARD)/boot/*
chmod a+x ubuntu/$(BOARD)/jpts
chmod a+x ubuntu/$(BOARD)/pts
chmod a+w ubuntu/$(BOARD)/*
clean:
rm -rf ubuntu/$(BOARD)
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