diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-03 23:52:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-10-08 13:26:39 +0100 |
commit | 35c3b9132d9ea3bc20d5744f7027156ef1049b7c (patch) | |
tree | 275deeeaf6524b05796dd18ec1d3709d84709cef /scripts | |
parent | 64e1d81be2e1e5fc466dbe3f025fe9aab074feab (diff) | |
download | poky-35c3b9132d9ea3bc20d5744f7027156ef1049b7c.tar.gz |
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/bitbake-prserv-tool | 40 |
1 files changed, 0 insertions, 40 deletions
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 () | |||
55 | return $ret | 55 | return $ret |
56 | } | 56 | } |
57 | 57 | ||
58 | do_migrate_localcount () | ||
59 | { | ||
60 | df=`bitbake -R conf/migrate_localcount.conf -e | \ | ||
61 | grep ^LOCALCOUNT_DUMPFILE= | cut -f2 -d\"` | ||
62 | if [ "x${df}" == "x" ]; | ||
63 | then | ||
64 | echo "LOCALCOUNT_DUMPFILE is not defined!" | ||
65 | return 1 | ||
66 | fi | ||
67 | |||
68 | rm -f $df | ||
69 | clean_cache | ||
70 | echo "Exporting LOCALCOUNT to AUTOINCs..." | ||
71 | bitbake -R conf/migrate_localcount.conf -p | ||
72 | [ ! $? -eq 0 ] && echo "Exporting to file $df failed!" && exit 1 | ||
73 | |||
74 | if [ -e $df ]; | ||
75 | then | ||
76 | echo "Exporting to file $df succeeded!" | ||
77 | else | ||
78 | echo "Exporting to file $df failed!" | ||
79 | exit 1 | ||
80 | fi | ||
81 | |||
82 | echo "Importing generated AUTOINC entries..." | ||
83 | [ -e $df ] && do_import $df | ||
84 | |||
85 | if [ ! $? -eq 0 ] | ||
86 | then | ||
87 | echo "Migration from LOCALCOUNT to AUTOINCs failed!" | ||
88 | return 1 | ||
89 | fi | ||
90 | |||
91 | echo "Migration from LOCALCOUNT to AUTOINCs succeeded!" | ||
92 | return 0 | ||
93 | } | ||
94 | |||
95 | [ $# -eq 0 ] && help && exit 1 | 58 | [ $# -eq 0 ] && help && exit 1 |
96 | 59 | ||
97 | case $2 in | 60 | case $2 in |
@@ -110,9 +73,6 @@ export) | |||
110 | import) | 73 | import) |
111 | do_import $2 | 74 | do_import $2 |
112 | ;; | 75 | ;; |
113 | migrate_localcount) | ||
114 | do_migrate_localcount | ||
115 | ;; | ||
116 | *) | 76 | *) |
117 | help | 77 | help |
118 | exit 1 | 78 | exit 1 |