From 35c3b9132d9ea3bc20d5744f7027156ef1049b7c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 3 Oct 2024 23:52:25 +0100 Subject: migrate_localcount: Drop long obsolete code If BB_URI_LOCALCOUNT isn't set, the code does nothing. That code was removed in 2012: https://git.yoctoproject.org/poky/commit/?id=d0f35207f9e19b440393a79ebf621649c495738d Therefore drop the rest of it! (From OE-Core rev: fca25fc4d7721f85f64c942307ebe7ba9f2fad3e) Signed-off-by: Richard Purdie --- scripts/bitbake-prserv-tool | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'scripts') diff --git a/scripts/bitbake-prserv-tool b/scripts/bitbake-prserv-tool index 80028342b1..0559c4c38a 100755 --- a/scripts/bitbake-prserv-tool +++ b/scripts/bitbake-prserv-tool @@ -55,43 +55,6 @@ do_import () return $ret } -do_migrate_localcount () -{ - df=`bitbake -R conf/migrate_localcount.conf -e | \ - grep ^LOCALCOUNT_DUMPFILE= | cut -f2 -d\"` - if [ "x${df}" == "x" ]; - then - echo "LOCALCOUNT_DUMPFILE is not defined!" - return 1 - fi - - rm -f $df - clean_cache - echo "Exporting LOCALCOUNT to AUTOINCs..." - bitbake -R conf/migrate_localcount.conf -p - [ ! $? -eq 0 ] && echo "Exporting to file $df failed!" && exit 1 - - if [ -e $df ]; - then - echo "Exporting to file $df succeeded!" - else - echo "Exporting to file $df failed!" - exit 1 - fi - - echo "Importing generated AUTOINC entries..." - [ -e $df ] && do_import $df - - if [ ! $? -eq 0 ] - then - echo "Migration from LOCALCOUNT to AUTOINCs failed!" - return 1 - fi - - echo "Migration from LOCALCOUNT to AUTOINCs succeeded!" - return 0 -} - [ $# -eq 0 ] && help && exit 1 case $2 in @@ -110,9 +73,6 @@ export) import) do_import $2 ;; -migrate_localcount) - do_migrate_localcount - ;; *) help exit 1 -- cgit v1.2.3-54-g00ecf