Git rev: master/3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c I got an error when running sdk-update from a local path on 2.1_M2 ####################### $ devtool sdk-update /buildarea/poky_sdk Traceback (most recent call last): File "/buildarea/poky_sdk_old/sysroots/x86_64-pokysdk-linux//usr/bin/devtool", line 305, in <module> ret = main() File "/buildarea/poky_sdk_old/sysroots/x86_64-pokysdk-linux//usr/bin/devtool", line 292, in main ret = args.func(args, config, basepath, workspace) File "/buildarea/poky_sdk_old/layers/build/scripts/lib/devtool/sdk.py", line 138, in sdk_update sstate_dir = os.path.join(newsdk_path, 'sstate-cache') NameError: global name 'newsdk_path' is not defined ####################### Steps: 1. Build an ext_sdk toolchain against the old git rev 2. Build another ext_sdk toolchain against the new git rev 3. Install the old ext_sdk into poky_sdk_old directory, install the new ext_sdk into poky_sdk_new directory 4. cd poky_sdk_old, setup the environment 5. Run devtool sdk-update poky_sdk_new
Argument sdk-update seems to be removed: devtool sdk-update http://localhost:8000 ERROR: argument <subcommand>: invalid choice: 'sdk-update' (choose from 'create-workspace', 'deploy-target', 'undeploy-target', 'search', 'build', 'add', 'modify', 'extract', 'sync', 'update-recipe', 'status', 'reset', 'upgrade', 'edit-recipe', 'configure-help', 'build-image') usage: devtool [--basepath BASEPATH] [--bbpath BBPATH] [-d] [-q] [--color COLOR] [-h] <subcommand> ...
sdk-update hasn't been removed. You won't find it in the list of commands supported by devtool outside of the extensible SDK however, it's only available within the extensible SDK environment.
Could reproduce with master e0fd96442a20e3fe7953bf38fc02520cd0dd4d6a on Feb 26/2016
This should fix it, (about to test the hypothesis): diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py index fbf2e79..22c5279 100644 --- a/scripts/lib/devtool/sdk.py +++ b/scripts/lib/devtool/sdk.py @@ -133,6 +133,7 @@ def sdk_update(args, config, basepath, workspace): logger.debug("Found conf/locked-sigs.inc in %s" % updateserver) update_dict = generate_update_dict(new_locked_sig_file_path, old_locked_sig_file_path) logger.debug("update_dict = %s" % update_dict) + newsdk_path = updateserver sstate_dir = os.path.join(newsdk_path, 'sstate-cache') if not os.path.exists(sstate_dir): logger.error("sstate-cache directory not found under %s" % newsdk_path)
(In reply to comment #4) > This should fix it, (about to test the hypothesis): > > diff --git a/scripts/lib/devtool/sdk.py b/scripts/lib/devtool/sdk.py > index fbf2e79..22c5279 100644 > --- a/scripts/lib/devtool/sdk.py > +++ b/scripts/lib/devtool/sdk.py > @@ -133,6 +133,7 @@ def sdk_update(args, config, basepath, workspace): > logger.debug("Found conf/locked-sigs.inc in %s" % updateserver) > update_dict = generate_update_dict(new_locked_sig_file_path, > old_locked_sig_file_path) > logger.debug("update_dict = %s" % update_dict) > + newsdk_path = updateserver > sstate_dir = os.path.join(newsdk_path, 'sstate-cache') > if not os.path.exists(sstate_dir): > logger.error("sstate-cache directory not found under %s" % > newsdk_path) Hi Juro, You could test using the testsdkext task, you need to inherit testsdk class in local.conf and then remove comments [1] of the local test code. $ bitbake core-image-minimal -c populate_sdk_ext $ bitbake core-image-minimal -c testsdkext [1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/lib/oeqa/sdkext/sdk_update.py#n33
At this point SDK installation does not work. local.conf: USER_CLASSES += " testsdk " $ bitbake core-image-minimal -c testsdkext ERROR: core-image-minimal-1.0-r0 do_testsdkext: Couldn't install the SDK EXT: Poky (Yocto Project Reference Distro) Extensible SDK installer version 2.0+snapshot =================================================================================== You are about to install the SDK to "/data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/testsdkext/tc". Proceed[Y/n]? Y Extracting SDK..........................................done Setting it up... Extracting buildtools... Preparing build system... ERROR: SDK preparation failed: see /data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/testsdkext/tc/preparing_build_system.log ERROR: core-image-minimal-1.0-r0 do_testsdkext: Function failed: do_testsdkext ERROR: Logfile of failure stored in: /data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_testsdkext.28359 ERROR: Task 0 (/data/master/poky/meta/recipes-core/images/core-image-minimal.bb, do_testsdkext) failed with exit code '1' NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and 1 failed. It is probably related to renaming layers (meta-poky). Manual installation of SDK generates the same error.
(In reply to comment #6) > At this point SDK installation does not work. > > local.conf: > USER_CLASSES += " testsdk " > > $ bitbake core-image-minimal -c testsdkext > > > ERROR: core-image-minimal-1.0-r0 do_testsdkext: Couldn't install the SDK EXT: > Poky (Yocto Project Reference Distro) Extensible SDK installer version > 2.0+snapshot > ============================================================================= > ====== > You are about to install the SDK to > "/data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image- > minimal/1.0-r0/testsdkext/tc". Proceed[Y/n]? Y > Extracting SDK..........................................done > Setting it up... > Extracting buildtools... > Preparing build system... > ERROR: SDK preparation failed: see > /data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image- > minimal/1.0-r0/testsdkext/tc/preparing_build_system.log > > ERROR: core-image-minimal-1.0-r0 do_testsdkext: Function failed: > do_testsdkext > ERROR: Logfile of failure stored in: > /data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image- > minimal/1.0-r0/temp/log.do_testsdkext.28359 > ERROR: Task 0 > (/data/master/poky/meta/recipes-core/images/core-image-minimal.bb, > do_testsdkext) failed with exit code '1' > NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun > and 1 failed. > > It is probably related to renaming layers (meta-poky). > Manual installation of SDK generates the same error. Yes there was a break in the weekend due to unative class change, i expect to be fixed today. Cheers, alimon
Created attachment 3014 [details] Console output of bitbake -c testsdkext
(In reply to comment #7) > (In reply to comment #6) > > At this point SDK installation does not work. > > > > local.conf: > > USER_CLASSES += " testsdk " > > > > $ bitbake core-image-minimal -c testsdkext > > > > > > ERROR: core-image-minimal-1.0-r0 do_testsdkext: Couldn't install the SDK EXT: > > Poky (Yocto Project Reference Distro) Extensible SDK installer version > > 2.0+snapshot > > ============================================================================= > > ====== > > You are about to install the SDK to > > "/data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image- > > minimal/1.0-r0/testsdkext/tc". Proceed[Y/n]? Y > > Extracting SDK..........................................done > > Setting it up... > > Extracting buildtools... > > Preparing build system... > > ERROR: SDK preparation failed: see > > /data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image- > > minimal/1.0-r0/testsdkext/tc/preparing_build_system.log > > > > ERROR: core-image-minimal-1.0-r0 do_testsdkext: Function failed: > > do_testsdkext > > ERROR: Logfile of failure stored in: > > /data/master/poky/build-9043-fixed1/tmp/work/qemux86-poky-linux/core-image- > > minimal/1.0-r0/temp/log.do_testsdkext.28359 > > ERROR: Task 0 > > (/data/master/poky/meta/recipes-core/images/core-image-minimal.bb, > > do_testsdkext) failed with exit code '1' > > NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun > > and 1 failed. > > > > It is probably related to renaming layers (meta-poky). > > Manual installation of SDK generates the same error. > > Yes there was a break in the weekend due to unative class change, i expect > to be fixed today. > > Cheers, > alimon OK, it worked today, tests passed. (See the attached log). I'll post the patch to the mailing list.
I posted two patches to the mailing list.
Merged: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=14dd07caac25f252986ad1dda264abee313568dd and http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b04280ab5ff9cae40c4894767084b9306755c614
Verified it with 2.1 M3 RC1. Git rev: master/8debfea81e69d038bd2d56314b272cb74f5582ed I found another issue and filed a new bug 9301 to report it.