diff options
Diffstat (limited to 'scripts/poky-setup-rpmrepo')
-rwxr-xr-x | scripts/poky-setup-rpmrepo | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/poky-setup-rpmrepo b/scripts/poky-setup-rpmrepo index 0e84ca9ee5..03372b6199 100755 --- a/scripts/poky-setup-rpmrepo +++ b/scripts/poky-setup-rpmrepo | |||
@@ -47,17 +47,17 @@ setup_tmpdir() { | |||
47 | } | 47 | } |
48 | 48 | ||
49 | setup_sysroot() { | 49 | setup_sysroot() { |
50 | # Toolchain installs set up $POKY_NATIVE_SYSROOT in their | 50 | # Toolchain installs set up $OECORE_NATIVE_SYSROOT in their |
51 | # environment script. If that variable isn't set, we're | 51 | # environment script. If that variable isn't set, we're |
52 | # either in an in-tree poky scenario or the environment | 52 | # either in an in-tree poky scenario or the environment |
53 | # script wasn't source'd. | 53 | # script wasn't source'd. |
54 | if [ -z "$POKY_NATIVE_SYSROOT" ]; then | 54 | if [ -z "$OECORE_NATIVE_SYSROOT" ]; then |
55 | setup_tmpdir | 55 | setup_tmpdir |
56 | BUILD_ARCH=`uname -m` | 56 | BUILD_ARCH=`uname -m` |
57 | BUILD_OS=`uname | tr '[A-Z]' '[a-z]'` | 57 | BUILD_OS=`uname | tr '[A-Z]' '[a-z]'` |
58 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" | 58 | BUILD_SYS="$BUILD_ARCH-$BUILD_OS" |
59 | 59 | ||
60 | POKY_NATIVE_SYSROOT=$TMPDIR/sysroots/$BUILD_SYS | 60 | OECORE_NATIVE_SYSROOT=$TMPDIR/sysroots/$BUILD_SYS |
61 | fi | 61 | fi |
62 | } | 62 | } |
63 | 63 | ||
@@ -76,7 +76,7 @@ if [ ! -d "$RPM_DIR" ]; then | |||
76 | exit 1 | 76 | exit 1 |
77 | fi | 77 | fi |
78 | 78 | ||
79 | CREATEREPO=$POKY_NATIVE_SYSROOT/usr/bin/createrepo | 79 | CREATEREPO=$OECORE_NATIVE_SYSROOT/usr/bin/createrepo |
80 | if [ ! -e "$CREATEREPO" ]; then | 80 | if [ ! -e "$CREATEREPO" ]; then |
81 | echo "Error: can't find createrepo binary" | 81 | echo "Error: can't find createrepo binary" |
82 | echo "please run bitbake createrepo-native first" | 82 | echo "please run bitbake createrepo-native first" |