Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel393
Commits
910d4b5e
Commit
910d4b5e
authored
Aug 26, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not regen bblayers.conf & local.conf
parent
78f7642e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
26 deletions
+41
-26
setup.sh
setup.sh
+41
-26
No files found.
setup.sh
View file @
910d4b5e
...
@@ -240,40 +240,55 @@ echo " core-image-elphel393" >> $CONF_NOTES
...
@@ -240,40 +240,55 @@ echo " core-image-elphel393" >> $CONF_NOTES
echo
""
>>
$CONF_NOTES
echo
""
>>
$CONF_NOTES
CURRENT_PATH2
=
$(
dirname
$(
readlink
-f
"
$0
"
))
CURRENT_PATH2
=
$(
dirname
$(
readlink
-f
"
$0
"
))
echo
"CHECKPOINT "
$CURRENT_PATH2
#echo "CHECKPOINT "$CURRENT_PATH2
echo
""
BBLAYERS_CONF
=
"conf/bblayers.conf"
BBLAYERS_CONF
=
"conf/bblayers.conf"
LOCAL_CONF
=
"conf/local.conf"
LOCAL_CONF
=
"conf/local.conf"
if
[
-f
build/
$BBLAYERS_CONF
]
;
then
echo
"removing build/
$BBLAYERS_CONF
, a new file will be regenerated"
MISSING_LOCAL_CONF
=
0
rm
build/
$BBLAYERS_CONF
MISSING_BBLAYERS_CONF
=
0
if
[
!
-f
build/
$LOCAL_CONF
]
;
then
MISSING_LOCAL_CONF
=
1
else
echo
"build/
$LOCAL_CONF
exists"
fi
fi
if
[
-f
build/
$LOCAL_CONF
]
;
then
echo
"removing build/
$LOCAL_CONF
, a new file will be regenerated"
if
[
!
-f
build/
$BBLAYERS_CONF
]
;
then
rm
build/
$LOCAL_CONF
MISSING_BBLAYERS_CONF
=
1
else
echo
"build/
$BBLAYERS_CONF
exists"
fi
fi
echo
""
.
./oe-init-build-env build
.
./oe-init-build-env build
echo
"BBLAYERS =
\"
\\
"
>>
$BBLAYERS_CONF
echo
""
echo
"
$CURRENT_PATH2
/meta
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH2
/meta-yocto
\\
"
>>
$BBLAYERS_CONF
if
[
$MISSING_BBLAYERS_CONF
-eq
1
]
;
then
echo
"
$CURRENT_PATH2
/meta-yocto-bsp
\\
"
>>
$BBLAYERS_CONF
echo
"BBLAYERS =
\"
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$EZQROOT
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH2
/meta
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$E393ROOT
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH2
/meta-yocto
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$XLNXROOT
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH2
/meta-yocto-bsp
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-oe
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$EZQROOT
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-python
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$E393ROOT
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-networking
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$XLNXROOT
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-webserver
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-oe
\\
"
>>
$BBLAYERS_CONF
echo
"
\"
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-python
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-networking
\\
"
>>
$BBLAYERS_CONF
echo
"
$CURRENT_PATH1
/
$E393_METADIR
/
$MOEROOT
/meta-webserver
\\
"
>>
$BBLAYERS_CONF
echo
"
\"
"
>>
$BBLAYERS_CONF
fi
#distro features: systemd
#distro features: systemd
#echo "DISTRO_FEATURES_append = \" systemd\"" >> $LOCAL_CONF
#echo "DISTRO_FEATURES_append = \" systemd\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_init_manager = \"systemd\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_init_manager = \"systemd\"" >> $LOCAL_CONF
#echo "DISTRO_FEATURES_BACKFILL_CONSIDERED = \"sysvinit\"" >> $LOCAL_CONF
#echo "DISTRO_FEATURES_BACKFILL_CONSIDERED = \"sysvinit\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_initscripts = \"\"" >> $LOCAL_CONF
#echo "VIRTUAL-RUNTIME_initscripts = \"\"" >> $LOCAL_CONF
# change the MACHINE
if
[
$MISSING_LOCAL_CONF
-eq
1
]
;
then
echo
"MACHINE ?=
\"
elphel393
\"
"
>>
$LOCAL_CONF
# change the MACHINE
# Elphel's MIRROR website, \n is important
echo
"MACHINE ?=
\"
elphel393
\"
"
>>
$LOCAL_CONF
echo
"MIRRORS =+
\"
http://.*/.* http://mirror.elphel.com/elphel393_mirror/
\\
n
\"
"
>>
$LOCAL_CONF
# Elphel's MIRROR website, \n is important
echo
"MIRRORS =+
\"
http://.*/.* http://mirror.elphel.com/elphel393_mirror/
\\
n
\"
"
>>
$LOCAL_CONF
echo
"REMOTE_USER ?=
\"
root
\"
"
>>
$LOCAL_CONF
echo
"REMOTE_IP ?=
\"
192.168.0.9
\"
"
>>
$LOCAL_CONF
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment