2019-06-15 23:02:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
### Clear existing rootfs ###
|
|
|
|
rm -rf out/rootfs*
|
|
|
|
mkdir -p out/rootfs_rock64/
|
|
|
|
mkdir -p out/rootfs_raspi/
|
|
|
|
|
2019-06-18 02:34:38 +00:00
|
|
|
### Make rock64 rootfs ###
|
2019-06-15 23:02:44 +00:00
|
|
|
cp -rf rootfs/standard/* out/rootfs_rock64/
|
|
|
|
|
2019-06-19 03:52:49 +00:00
|
|
|
### Make raspi rootfs ###
|
2019-06-15 23:02:44 +00:00
|
|
|
cp -rf rootfs/standard/* out/rootfs_raspi/
|
|
|
|
cp -rf rootfs/raspi/* out/rootfs_raspi/
|
2019-06-19 03:52:49 +00:00
|
|
|
|
|
|
|
### Make tarballs ###
|
|
|
|
rm -f out/mynode_rootfs_raspi.tar.gz
|
|
|
|
rm -f out/mynode_rootfs_rock64.tar.gz
|
|
|
|
tar -zcvf out/mynode_rootfs_raspi.tar.gz ./out/rootfs_raspi/*
|
|
|
|
tar -zcvf out/mynode_rootfs_rock64.tar.gz ./out/rootfs_rock64/*
|