summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/net-tools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/net-tools')
-rw-r--r--meta/recipes-extended/net-tools/net-tools_1.60-26.bb14
1 files changed, 4 insertions, 10 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 115b3987c3..45d7bf4524 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,21 +70,15 @@ 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.
75disable_i18n() {
76 sed -i -e 's/^I18N=1/# I18N=1/' ${S}/config.make
77}
78disable_i18n_class-target () {
79 :
80}
81
82do_configure() { 73do_configure() {
83 # net-tools has its own config mechanism requiring "make config" 74 # net-tools has its own config mechanism requiring "make config"
84 # we pre-generate desired options and copy to source directory instead 75 # we pre-generate desired options and copy to source directory instead
85 cp ${WORKDIR}/net-tools-config.h ${S}/config.h 76 cp ${WORKDIR}/net-tools-config.h ${S}/config.h
86 cp ${WORKDIR}/net-tools-config.make ${S}/config.make 77 cp ${WORKDIR}/net-tools-config.make ${S}/config.make
87 disable_i18n 78
79 if [ "${USE_NLS}" = "no" ]; then
80 sed -i -e 's/^I18N=1/# I18N=1/' ${S}/config.make
81 fi
88} 82}
89 83
90do_compile() { 84do_compile() {