Commit e32fcf20 authored by Andrey Filippov's avatar Andrey Filippov

modified run_bitbake.sh to be run from subprojects, re-wrote used_files.py

parent 4d42bcfe
...@@ -8,3 +8,6 @@ rootfs-elphel ...@@ -8,3 +8,6 @@ rootfs-elphel
tools tools
bootable-images bootable-images
projects.json projects.json
.project
.pydevproject
.settings
#!/bin/bash #!/bin/bash
#ls -all
args="$@" args="$@"
arg0=$0
#echo "arg0=" $arg0
#echo "args=" $args
while (( "$#" )); do while (( "$#" )); do
shift shift
done done
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #DIR0="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR=$(dirname $(dirname $(dirname $(realpath $(dirname $(dirname $arg0))/sysroots))))
echo "DIR=" $DIR
echo "Launching bitbake $args" echo "Launching bitbake $args"
cd $DIR/../../poky #cd $DIR0/../../poky
cd $DIR
. ./oe-init-build-env . ./oe-init-build-env
bitbake $args | sed -u 's@| @@' bitbake $args | sed -u 's@| @@'
exit 0 exit 0
This diff is collapsed.
...@@ -46,7 +46,7 @@ def main(): ...@@ -46,7 +46,7 @@ def main():
should have CDT and EGit plugins installed. should have CDT and EGit plugins installed.
USAGE: USAGE:
%s eclipse-home [[path-to-workspace] project-paths] %s eclipse-home [[path-to-workspace] project-paths]
First (mandatory) argument of this program (eclipse-home) is the full path to Eclipse instalaltion First (mandatory) argument of this program (eclipse-home) is the full path to Eclipse installation
(directory that has eclipse executable and eclipse.ini files). (directory that has eclipse executable and eclipse.ini files).
Second (optional) argument (path-to-workspace) is the path to workspace. If not specified, Second (optional) argument (path-to-workspace) is the path to workspace. If not specified,
then ../workspace_elphel393 will be used. then ../workspace_elphel393 will be used.
...@@ -55,7 +55,7 @@ USAGE: ...@@ -55,7 +55,7 @@ USAGE:
The program will not overwrite or modify any existing workspace. The program will not overwrite or modify any existing workspace.
"""%(argv[0],)) """%(argv[0],))
return return 0
eclipse_home = argv[1] eclipse_home = argv[1]
if (len(argv) > 3): if (len(argv) > 3):
......
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