Skip to content

Commit

Permalink
Feature/sdc integration romfs investigations (apache#20)
Browse files Browse the repository at this point in the history
* Test implement of integration a ROM FS structure to code base

* Add command to execute before build

* Cleaning commit for submit
  • Loading branch information
royfengsss committed Jul 1, 2020
1 parent 6295f93 commit 3a0ede8
Show file tree
Hide file tree
Showing 16 changed files with 754 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tools/esp32/genromfsheader.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#! /bin/sh

BASE=`dirname $0`
WORKDIR=$BASE/romfs
DESTDIR=boards/xtensa/esp32/esp32-core/include/
echo "Generate the ROMFS header file based the template at $WORKDIR"

SAVEDDIR=$PWD
cd $WORKDIR
./mkromfsimg.sh -nofat $SAVEDDIR
cd $SAVEDDIR

if [ -e $WORKDIR/nsh_romfsimg.h ]
then
echo "$WORKDIR/nsh_romfsimg.h generated. It will be moved to $DESTDIR"
mv $WORKDIR/nsh_romfsimg.h $DESTDIR
echo "You can start build with make"
fi
Binary file added tools/esp32/romfs/img.template/data/data0
Binary file not shown.
Binary file added tools/esp32/romfs/img.template/data/data1
Binary file not shown.
Binary file added tools/esp32/romfs/img.template/data/data2
Binary file not shown.
Binary file added tools/esp32/romfs/img.template/data/data3
Binary file not shown.
Binary file added tools/esp32/romfs/img.template/data/data4
Binary file not shown.
222 changes: 222 additions & 0 deletions tools/esp32/romfs/img.template/data/sample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
[
{
"Items": "item1",
"Value": "value1",
"Comments": "comments1",
"Detail": "detail1",
"Rating": "rating1"
},
{
"Items": "item2",
"Value": "value2",
"Comments": "comments2",
"Detail": "detail2",
"Rating": "rating2"
},
{
"Items": "item3",
"Value": "value3",
"Comments": "comments3",
"Detail": "detail3",
"Rating": "rating3"
},
{
"Items": "item4",
"Value": "value4",
"Comments": "comments4",
"Detail": "detail4",
"Rating": "rating4"
},
{
"Items": "item5",
"Value": "value5",
"Comments": "comments5",
"Detail": "detail5",
"Rating": "rating5"
},
{
"Items": "item6",
"Value": "value6",
"Comments": "comments6",
"Detail": "detail6",
"Rating": "rating6"
},
{
"Items": "item7",
"Value": "value7",
"Comments": "comments7",
"Detail": "detail7",
"Rating": "rating7"
},
{
"Items": "item8",
"Value": "value8",
"Comments": "comments8",
"Detail": "detail8",
"Rating": "rating8"
},
{
"Items": "item9",
"Value": "value9",
"Comments": "comments9",
"Detail": "detail9",
"Rating": "rating9"
},
{
"Items": "item10",
"Value": "value10",
"Comments": "comments10",
"Detail": "detail10",
"Rating": "rating10"
},
{
"Items": "item11",
"Value": "value11",
"Comments": "comments11",
"Detail": "detail11",
"Rating": "rating11"
},
{
"Items": "item12",
"Value": "value12",
"Comments": "comments12",
"Detail": "detail12",
"Rating": "rating12"
},
{
"Items": "item13",
"Value": "value13",
"Comments": "comments13",
"Detail": "detail13",
"Rating": "rating13"
},
{
"Items": "item14",
"Value": "value14",
"Comments": "comments14",
"Detail": "detail14",
"Rating": "rating14"
},
{
"Items": "item15",
"Value": "value15",
"Comments": "comments15",
"Detail": "detail15",
"Rating": "rating15"
},
{
"Items": "item16",
"Value": "value16",
"Comments": "comments16",
"Detail": "detail16",
"Rating": "rating16"
},
{
"Items": "item17",
"Value": "value17",
"Comments": "comments17",
"Detail": "detail17",
"Rating": "rating17"
},
{
"Items": "item18",
"Value": "value18",
"Comments": "comments18",
"Detail": "detail18",
"Rating": "rating18"
},
{
"Items": "item19",
"Value": "value19",
"Comments": "comments19",
"Detail": "detail19",
"Rating": "rating19"
},
{
"Items": "item20",
"Value": "value20",
"Comments": "comments20",
"Detail": "detail20",
"Rating": "rating20"
},
{
"Items": "item21",
"Value": "value21",
"Comments": "comments21",
"Detail": "detail21",
"Rating": "rating21"
"Sub":
[
{
"SubItems": "item1",
"SubValue": "value1",
"SubComments": "comments1",
"SubDetail": "detail1",
"SubRating": "rating1"
},
{
"SubItems": "item2",
"SubValue": "value2",
"SubComments": "comments2",
"SubDetail": "detail2",
"SubRating": "rating2"
},
{
"SubItems": "item3",
"SubValue": "value3",
"SubComments": "comments3",
"SubDetail": "detail3",
"SubRating": "rating3"
},
{
"SubItems": "item4",
"SubValue": "value4",
"SubComments": "comments4",
"SubDetail": "detail4",
"SubRating": "rating4"
},
{
"SubItems": "item5",
"SubValue": "value5",
"SubComments": "comments5",
"SubDetail": "detail5",
"SubRating": "rating5"
},
{
"SubItems": "item6",
"SubValue": "value6",
"SubComments": "comments6",
"SubDetail": "detail6",
"SubRating": "rating6"
},
{
"SubItems": "item7",
"SubValue": "value7",
"SubComments": "comments7",
"SubDetail": "detail7",
"SubRating": "rating7"
},
{
"SubItems": "item8",
"SubValue": "value8",
"SubComments": "comments8",
"SubDetail": "detail8",
"SubRating": "rating8"
},
{
"SubItems": "item9",
"SubValue": "value9",
"SubComments": "comments9",
"SubDetail": "detail9",
"SubRating": "rating9"
},
{
"SubItems": "item10",
"SubValue": "value10",
"SubComments": "comments10",
"SubDetail": "detail10",
"SubRating": "rating10"
}
]
}
]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 3a0ede8

Please sign in to comment.