Tweaks the the dev env and build system
This commit is contained in:
@@ -25,6 +25,7 @@ APT_PACKAGES=(
|
|||||||
"vim"
|
"vim"
|
||||||
"locate"
|
"locate"
|
||||||
"sudo"
|
"sudo"
|
||||||
|
"sshpass"
|
||||||
)
|
)
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|||||||
45
.gitignore
vendored
45
.gitignore
vendored
@@ -1,31 +1,26 @@
|
|||||||
|
.DS_Store
|
||||||
.sconf_temp/
|
.sconf_temp/
|
||||||
.sconsign.dblite
|
.sconsign.dblite
|
||||||
/build
|
|
||||||
/dist
|
|
||||||
/crap
|
|
||||||
/pkg
|
|
||||||
/mnt
|
|
||||||
/demo
|
|
||||||
/bbctrl-*
|
|
||||||
node_modules
|
|
||||||
*~
|
|
||||||
\#*
|
|
||||||
*.pyc
|
|
||||||
__pycache__
|
|
||||||
*.egg-info
|
|
||||||
/upload
|
|
||||||
/*.img
|
|
||||||
/*.img.xz
|
|
||||||
/*.img.gzip
|
|
||||||
/*.img.bz2
|
|
||||||
*.so
|
|
||||||
*.deb
|
*.deb
|
||||||
*.zip
|
*.egg-info
|
||||||
/rpi-share
|
|
||||||
/rpi-root
|
|
||||||
/src/bbserial/linux-rpi-raspberrypi-kernel*
|
|
||||||
/src/bbserial/raspberrypi-kernel*
|
|
||||||
.vscode
|
|
||||||
*.elf
|
*.elf
|
||||||
*.hex
|
*.hex
|
||||||
|
*.img
|
||||||
|
*.img.bz2
|
||||||
|
*.img.gzip
|
||||||
|
*.img.xz
|
||||||
|
*.pyc
|
||||||
|
*.so
|
||||||
|
*.tmp
|
||||||
|
*.zip
|
||||||
|
**/__pycache__
|
||||||
|
*~
|
||||||
|
\#*
|
||||||
|
build
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
null.d
|
null.d
|
||||||
|
rpi-root
|
||||||
|
rpi-share
|
||||||
|
src/bbserial/linux-rpi-raspberrypi-kernel*
|
||||||
|
src/bbserial/raspberrypi-kernel*
|
||||||
|
|||||||
31
.vscode/settings.json
vendored
Normal file
31
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"files.exclude": {
|
||||||
|
"**/.git": true,
|
||||||
|
"**/.svn": true,
|
||||||
|
"**/.hg": true,
|
||||||
|
"**/CVS": true,
|
||||||
|
"**/.DS_Store": true,
|
||||||
|
"**/Thumbs.db": true,
|
||||||
|
"**/node_modules": true,
|
||||||
|
"**/build": true,
|
||||||
|
"**/dist": true,
|
||||||
|
"**/rpi-share": true,
|
||||||
|
"**/rpi-root": true
|
||||||
|
},
|
||||||
|
"search.exclude": {
|
||||||
|
"**/bower_components": true,
|
||||||
|
"**/*.code-search": true,
|
||||||
|
"**/node_modules": true,
|
||||||
|
"**/build": true,
|
||||||
|
"**/dist": true,
|
||||||
|
"**/rpi-share": true,
|
||||||
|
"**/rpi-root": true
|
||||||
|
},
|
||||||
|
"explorer.excludeGitIgnore": true,
|
||||||
|
"git.ignoredRepositories": [
|
||||||
|
"rpi-share/camotics",
|
||||||
|
"rpi-share/cbang"
|
||||||
|
],
|
||||||
|
"git.autofetch": false,
|
||||||
|
"git.confirmSync": false
|
||||||
|
}
|
||||||
10
Makefile
10
Makefile
@@ -49,12 +49,6 @@ $(GPLAN_TARGET): $(GPLAN_MOD)
|
|||||||
|
|
||||||
$(GPLAN_MOD): $(GPLAN_IMG)
|
$(GPLAN_MOD): $(GPLAN_IMG)
|
||||||
./scripts/gplan-init-build.sh
|
./scripts/gplan-init-build.sh
|
||||||
git -C rpi-share/cbang fetch
|
|
||||||
git -C rpi-share/cbang reset --hard FETCH_HEAD
|
|
||||||
git -C rpi-share/cbang checkout 18f1e963107ef26abe750c023355a5c40dd07853
|
|
||||||
git -C rpi-share/camotics fetch
|
|
||||||
git -C rpi-share/camotics reset --hard FETCH_HEAD
|
|
||||||
git -C rpi-share/camotics checkout ec876c80d20fc19837133087cef0c447df5a939d
|
|
||||||
cp ./scripts/gplan-build.sh rpi-share/
|
cp ./scripts/gplan-build.sh rpi-share/
|
||||||
chmod +x rpi-share/gplan-build.sh
|
chmod +x rpi-share/gplan-build.sh
|
||||||
sudo ./scripts/rpi-chroot.sh $(GPLAN_IMG) /mnt/host/gplan-build.sh
|
sudo ./scripts/rpi-chroot.sh $(GPLAN_IMG) /mnt/host/gplan-build.sh
|
||||||
@@ -105,4 +99,8 @@ $(TARGET_DIR)/%.html: src/pug/%.pug node_modules FORCE
|
|||||||
@mkdir -p $(TARGET_DIR)
|
@mkdir -p $(TARGET_DIR)
|
||||||
$(PUG) -O pug-opts.js -P $< -o $(TARGET_DIR) || (rm -f $@; exit 1)
|
$(PUG) -O pug-opts.js -P $< -o $(TARGET_DIR) || (rm -f $@; exit 1)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf rpi-share
|
||||||
|
git clean -fxd
|
||||||
|
|
||||||
.PHONY: all install clean tidy pkg gplan lint pylint jshint bbserial
|
.PHONY: all install clean tidy pkg gplan lint pylint jshint bbserial
|
||||||
|
|||||||
@@ -31,30 +31,20 @@ if [ ! -e $GPLAN_IMG ]; then
|
|||||||
mv $GPLAN_IMG.tmp $GPLAN_IMG
|
mv $GPLAN_IMG.tmp $GPLAN_IMG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get repos
|
|
||||||
function fetch_local_repo() {
|
|
||||||
mkdir -p $1
|
|
||||||
git -C $1 init
|
|
||||||
git -C $1 fetch -t "$2" $3
|
|
||||||
git -C $1 reset --hard FETCH_HEAD
|
|
||||||
}
|
|
||||||
|
|
||||||
mkdir -p rpi-share || true
|
mkdir -p rpi-share || true
|
||||||
|
|
||||||
if [ ! -e rpi-share/cbang ]; then
|
if [ ! -e rpi-share/cbang ]; then
|
||||||
if [ "$CBANG_HOME" != "" ]; then
|
mkdir -p rpi-share/cbang
|
||||||
fetch_local_repo rpi-share/cbang "$CBANG_HOME" master
|
git -C rpi-share/cbang init
|
||||||
else
|
git -C rpi-share/cbang remote add origin https://github.com/CauldronDevelopmentLLC/cbang
|
||||||
git clone https://github.com/CauldronDevelopmentLLC/cbang \
|
git -C rpi-share/cbang fetch --depth 1 origin 18f1e963107ef26abe750c023355a5c40dd07853
|
||||||
rpi-share/cbang
|
git -C rpi-share/cbang reset --hard FETCH_HEAD
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e rpi-share/camotics ]; then
|
if [ ! -e rpi-share/camotics ]; then
|
||||||
if [ "$CAMOTICS_HOME" != "" ]; then
|
mkdir -p rpi-share/camotics
|
||||||
fetch_local_repo rpi-share/camotics "$CAMOTICS_HOME" master
|
git -C rpi-share/camotics init
|
||||||
else
|
git -C rpi-share/camotics remote add origin https://github.com/CauldronDevelopmentLLC/camotics
|
||||||
git clone https://github.com/CauldronDevelopmentLLC/camotics \
|
git -C rpi-share/camotics fetch --depth 1 origin ec876c80d20fc19837133087cef0c447df5a939d
|
||||||
rpi-share/camotics
|
git -C rpi-share/camotics reset --hard FETCH_HEAD
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user