diff options
-rw-r--r-- | meta/recipes-extended/net-tools/net-tools_1.60-26.bb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb index be267351e3..115b3987c3 100644 --- a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb +++ b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb | |||
@@ -70,11 +70,21 @@ python do_patch() { | |||
70 | bb.build.exec_func('patch_do_patch', d) | 70 | bb.build.exec_func('patch_do_patch', d) |
71 | } | 71 | } |
72 | 72 | ||
73 | # i18n only enabled for the target, doesn't build for native | ||
74 | # and isn't needed there. | ||
75 | disable_i18n() { | ||
76 | sed -i -e 's/^I18N=1/# I18N=1/' ${S}/config.make | ||
77 | } | ||
78 | disable_i18n_class-target () { | ||
79 | : | ||
80 | } | ||
81 | |||
73 | do_configure() { | 82 | do_configure() { |
74 | # net-tools has its own config mechanism requiring "make config" | 83 | # net-tools has its own config mechanism requiring "make config" |
75 | # we pre-generate desired options and copy to source directory instead | 84 | # we pre-generate desired options and copy to source directory instead |
76 | cp ${WORKDIR}/net-tools-config.h ${S}/config.h | 85 | cp ${WORKDIR}/net-tools-config.h ${S}/config.h |
77 | cp ${WORKDIR}/net-tools-config.make ${S}/config.make | 86 | cp ${WORKDIR}/net-tools-config.make ${S}/config.make |
87 | disable_i18n | ||
78 | } | 88 | } |
79 | 89 | ||
80 | do_compile() { | 90 | do_compile() { |
@@ -125,3 +135,4 @@ python __anonymous() { | |||
125 | } | 135 | } |
126 | ALTERNATIVE_PRIORITY = "100" | 136 | ALTERNATIVE_PRIORITY = "100" |
127 | 137 | ||
138 | BBCLASSEXTEND = "native nativesdk" | ||