* [PATCH v2] busybox: Upgrade to upstream 1.20.2
@ 2012-08-20 7:46 Radu Moisan
2012-08-20 8:18 ` Phil Blundell
0 siblings, 1 reply; 9+ messages in thread
From: Radu Moisan @ 2012-08-20 7:46 UTC (permalink / raw)
To: openembedded-core
Removed CONFIG_LSOF for backwards compatibility.
Signed-off-by: Radu Moisan <radu.moisan@intel.com>
---
.../B921600.patch | 0
.../busybox-appletlib-dependency.patch | 0
.../busybox-mkfs-minix-tests_bigendian.patch | 0
.../busybox-udhcpc-no_deconfig.patch | 37 +++++++++-----------
.../{busybox-1.19.4 => busybox-1.20.2}/defconfig | 0
.../fix-for-spurious-testsuite-failure.patch | 0
| 0
.../run-parts.in.usr-bin.patch | 0
.../sys_resource.patch | 0
.../watch.in.usr-bin.patch | 0
.../wget_dl_dir_fix.patch | 0
meta/recipes-core/busybox/busybox.inc | 2 ++
.../{busybox_1.19.4.bb => busybox_1.20.2.bb} | 6 ++--
13 files changed, 22 insertions(+), 23 deletions(-)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/B921600.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/busybox-appletlib-dependency.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/busybox-mkfs-minix-tests_bigendian.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/busybox-udhcpc-no_deconfig.patch (78%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/defconfig (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/fix-for-spurious-testsuite-failure.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/get_header_tar.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/run-parts.in.usr-bin.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/sys_resource.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/watch.in.usr-bin.patch (100%)
rename meta/recipes-core/busybox/{busybox-1.19.4 => busybox-1.20.2}/wget_dl_dir_fix.patch (100%)
rename meta/recipes-core/busybox/{busybox_1.19.4.bb => busybox_1.20.2.bb} (87%)
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/B921600.patch b/meta/recipes-core/busybox/busybox-1.20.2/B921600.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/B921600.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/B921600.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/busybox-appletlib-dependency.patch b/meta/recipes-core/busybox/busybox-1.20.2/busybox-appletlib-dependency.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/busybox-appletlib-dependency.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/busybox-appletlib-dependency.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/busybox-mkfs-minix-tests_bigendian.patch b/meta/recipes-core/busybox/busybox-1.20.2/busybox-mkfs-minix-tests_bigendian.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/busybox-mkfs-minix-tests_bigendian.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/busybox-mkfs-minix-tests_bigendian.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/busybox-udhcpc-no_deconfig.patch b/meta/recipes-core/busybox/busybox-1.20.2/busybox-udhcpc-no_deconfig.patch
similarity index 78%
rename from meta/recipes-core/busybox/busybox-1.19.4/busybox-udhcpc-no_deconfig.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/busybox-udhcpc-no_deconfig.patch
index 13004f7..4c9ce3b 100644
--- a/meta/recipes-core/busybox/busybox-1.19.4/busybox-udhcpc-no_deconfig.patch
+++ b/meta/recipes-core/busybox/busybox-1.20.2/busybox-udhcpc-no_deconfig.patch
@@ -31,10 +31,10 @@ Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
networking/udhcp/dhcpc.c | 29 +++++++++++++++++++++--------
1 files changed, 21 insertions(+), 8 deletions(-)
-diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
-index 4d755e6..a21e2c6 100644
---- a/networking/udhcp/dhcpc.c
-+++ b/networking/udhcp/dhcpc.c
+Index: busybox-1.20.2/networking/udhcp/dhcpc.c
+===================================================================
+--- busybox-1.20.2.orig/networking/udhcp/dhcpc.c
++++ busybox-1.20.2/networking/udhcp/dhcpc.c
@@ -29,6 +29,9 @@
#include <netpacket/packet.h>
#include <linux/filter.h>
@@ -42,10 +42,10 @@ index 4d755e6..a21e2c6 100644
+/* option whether to down the interface when reconfiguring */
+static int allow_deconfig = 1;
+
- /* struct client_config_t client_config is in bb_common_bufsiz1 */
+ /* "struct client_config_t client_config" is in bb_common_bufsiz1 */
-@@ -82,8 +85,9 @@ enum {
+@@ -81,8 +84,9 @@ enum {
OPT_x = 1 << 18,
OPT_f = 1 << 19,
OPT_B = 1 << 20,
@@ -56,7 +56,7 @@ index 4d755e6..a21e2c6 100644
USE_FOR_MMU( OPTBIT_b,)
IF_FEATURE_UDHCPC_ARPING(OPTBIT_a,)
IF_FEATURE_UDHCP_PORT( OPTBIT_P,)
-@@ -899,7 +903,8 @@ static void perform_renew(void)
+@@ -1040,7 +1044,8 @@ static void perform_renew(void)
state = RENEW_REQUESTED;
break;
case RENEW_REQUESTED: /* impatient are we? fine, square 1 */
@@ -66,7 +66,7 @@ index 4d755e6..a21e2c6 100644
case REQUESTING:
case RELEASED:
change_listen_mode(LISTEN_RAW);
-@@ -923,7 +928,8 @@ static void perform_release(uint32_t requested_ip, uint32_t server_addr)
+@@ -1064,7 +1069,8 @@ static void perform_release(uint32_t ser
bb_info_msg("Unicasting a release of %s to %s",
inet_ntoa(temp_addr), buffer);
send_release(server_addr, requested_ip); /* unicast */
@@ -76,16 +76,16 @@ index 4d755e6..a21e2c6 100644
}
bb_info_msg("Entering released state");
-@@ -1083,7 +1089,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
- #endif
- ;
+@@ -1215,7 +1221,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
+ /* O,x: list; -T,-t,-A take numeric param */
+ opt_complementary = "O::x::T+:t+:A+" IF_UDHCP_VERBOSE(":vv") ;
IF_LONG_OPTS(applet_long_options = udhcpc_longopts;)
- opt = getopt32(argv, "CV:H:h:F:i:np:qRr:s:T:t:SA:O:ox:fB"
+ opt = getopt32(argv, "CV:H:h:F:i:np:qRr:s:T:t:SA:O:ox:fBD"
USE_FOR_MMU("b")
IF_FEATURE_UDHCPC_ARPING("a")
IF_FEATURE_UDHCP_PORT("P:")
-@@ -1175,6 +1181,9 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
+@@ -1316,6 +1322,9 @@ int udhcpc_main(int argc UNUSED_PARAM, c
logmode |= LOGMODE_SYSLOG;
}
@@ -95,7 +95,7 @@ index 4d755e6..a21e2c6 100644
/* Make sure fd 0,1,2 are open */
bb_sanitize_stdio();
/* Equivalent of doing a fflush after every \n */
-@@ -1189,7 +1198,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
+@@ -1330,7 +1339,8 @@ int udhcpc_main(int argc UNUSED_PARAM, c
srand(monotonic_us());
state = INIT_SELECTING;
@@ -105,7 +105,7 @@ index 4d755e6..a21e2c6 100644
change_listen_mode(LISTEN_RAW);
packet_num = 0;
timeout = 0;
-@@ -1341,7 +1351,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
+@@ -1484,7 +1494,8 @@ int udhcpc_main(int argc UNUSED_PARAM, c
}
/* Timed out, enter init state */
bb_info_msg("Lease lost, entering init state");
@@ -115,8 +115,8 @@ index 4d755e6..a21e2c6 100644
state = INIT_SELECTING;
client_config.first_secs = 0; /* make secs field count from 0 */
/*timeout = 0; - already is */
-@@ -1489,7 +1500,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
- send_decline(xid, server_addr, packet.yiaddr);
+@@ -1667,7 +1678,8 @@ int udhcpc_main(int argc UNUSED_PARAM, c
+ send_decline(/*xid,*/ server_addr, packet.yiaddr);
if (state != REQUESTING)
- udhcp_run_script(NULL, "deconfig");
@@ -125,7 +125,7 @@ index 4d755e6..a21e2c6 100644
change_listen_mode(LISTEN_RAW);
state = INIT_SELECTING;
client_config.first_secs = 0; /* make secs field count from 0 */
-@@ -1536,7 +1548,8 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv)
+@@ -1711,7 +1723,8 @@ int udhcpc_main(int argc UNUSED_PARAM, c
bb_info_msg("Received DHCP NAK");
udhcp_run_script(&packet, "nak");
if (state != REQUESTING)
@@ -135,6 +135,3 @@ index 4d755e6..a21e2c6 100644
change_listen_mode(LISTEN_RAW);
sleep(3); /* avoid excessive network traffic */
state = INIT_SELECTING;
---
-1.7.7.1
-
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/defconfig b/meta/recipes-core/busybox/busybox-1.20.2/defconfig
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/defconfig
rename to meta/recipes-core/busybox/busybox-1.20.2/defconfig
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/fix-for-spurious-testsuite-failure.patch b/meta/recipes-core/busybox/busybox-1.20.2/fix-for-spurious-testsuite-failure.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/fix-for-spurious-testsuite-failure.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/fix-for-spurious-testsuite-failure.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/get_header_tar.patch b/meta/recipes-core/busybox/busybox-1.20.2/get_header_tar.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/get_header_tar.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/get_header_tar.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/run-parts.in.usr-bin.patch b/meta/recipes-core/busybox/busybox-1.20.2/run-parts.in.usr-bin.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/run-parts.in.usr-bin.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/run-parts.in.usr-bin.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch b/meta/recipes-core/busybox/busybox-1.20.2/sys_resource.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/sys_resource.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch b/meta/recipes-core/busybox/busybox-1.20.2/watch.in.usr-bin.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/watch.in.usr-bin.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/watch.in.usr-bin.patch
diff --git a/meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch b/meta/recipes-core/busybox/busybox-1.20.2/wget_dl_dir_fix.patch
similarity index 100%
rename from meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch
rename to meta/recipes-core/busybox/busybox-1.20.2/wget_dl_dir_fix.patch
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 78239a2..2b61e57 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -97,6 +97,8 @@ do_prepare_config () {
< ${WORKDIR}/defconfig > ${S}/.config
sed -i -e '/CONFIG_STATIC/d' .config
echo "# CONFIG_STATIC is not set" >> .config
+ sed -i -e '/CONFIG_LSOF/d' .config
+ echo "# CONFIG_LSOF is not set" >> .config
for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
${S}/.config
sed -i -e '${configmangle}' ${S}/.config
diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/busybox/busybox_1.20.2.bb
similarity index 87%
rename from meta/recipes-core/busybox/busybox_1.19.4.bb
rename to meta/recipes-core/busybox/busybox_1.20.2.bb
index 2e262ca..ac92a8c 100644
--- a/meta/recipes-core/busybox/busybox_1.19.4.bb
+++ b/meta/recipes-core/busybox/busybox_1.20.2.bb
@@ -1,5 +1,5 @@
require busybox.inc
-PR = "r13"
+PR = "r0"
SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
file://B921600.patch \
@@ -27,7 +27,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
file://busybox-mkfs-minix-tests_bigendian.patch \
file://fix-for-spurious-testsuite-failure.patch"
-SRC_URI[tarball.md5sum] = "9c0cae5a0379228e7b55e5b29528df8e"
-SRC_URI[tarball.sha256sum] = "9b853406da61ffb59eb488495fe99cbb7fb3dd29a31307fcfa9cf070543710ee"
+SRC_URI[tarball.md5sum] = "e025414bc6cd79579cc7a32a45d3ae1c"
+SRC_URI[tarball.sha256sum] = "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882"
EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX} SKIP_STRIP=y"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 7:46 [PATCH v2] busybox: Upgrade to upstream 1.20.2 Radu Moisan
@ 2012-08-20 8:18 ` Phil Blundell
2012-08-20 8:25 ` Paul Eggleton
0 siblings, 1 reply; 9+ messages in thread
From: Phil Blundell @ 2012-08-20 8:18 UTC (permalink / raw)
To: openembedded-core
On Mon, 2012-08-20 at 10:46 +0300, Radu Moisan wrote:
> @@ -97,6 +97,8 @@ do_prepare_config () {
> < ${WORKDIR}/defconfig > ${S}/.config
> sed -i -e '/CONFIG_STATIC/d' .config
> echo "# CONFIG_STATIC is not set" >> .config
> + sed -i -e '/CONFIG_LSOF/d' .config
> + echo "# CONFIG_LSOF is not set" >> .config
> for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
> ${S}/.config
> sed -i -e '${configmangle}' ${S}/.config
Why is this desirable?
p.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 8:18 ` Phil Blundell
@ 2012-08-20 8:25 ` Paul Eggleton
2012-08-20 8:28 ` Phil Blundell
0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2012-08-20 8:25 UTC (permalink / raw)
To: openembedded-core; +Cc: Phil Blundell
On Monday 20 August 2012 09:18:17 Phil Blundell wrote:
> On Mon, 2012-08-20 at 10:46 +0300, Radu Moisan wrote:
> > @@ -97,6 +97,8 @@ do_prepare_config () {
> >
> > < ${WORKDIR}/defconfig > ${S}/.config
> >
> > sed -i -e '/CONFIG_STATIC/d' .config
> > echo "# CONFIG_STATIC is not set" >> .config
> >
> > + sed -i -e '/CONFIG_LSOF/d' .config
> > + echo "# CONFIG_LSOF is not set" >> .config
> >
> > for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
> >
> > ${S}/.config
> >
> > sed -i -e '${configmangle}' ${S}/.config
>
> Why is this desirable?
Well, the more appropriate question would be: could we not just update the
defconfig and then make that change to it directly?
(In case it isn't clear - lsof is being disabled because it was not enabled in
the previous 1.19.4 version.)
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 8:25 ` Paul Eggleton
@ 2012-08-20 8:28 ` Phil Blundell
2012-08-20 8:31 ` Paul Eggleton
0 siblings, 1 reply; 9+ messages in thread
From: Phil Blundell @ 2012-08-20 8:28 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
On Mon, 2012-08-20 at 09:25 +0100, Paul Eggleton wrote:
> On Monday 20 August 2012 09:18:17 Phil Blundell wrote:
> > On Mon, 2012-08-20 at 10:46 +0300, Radu Moisan wrote:
> > > @@ -97,6 +97,8 @@ do_prepare_config () {
> > >
> > > < ${WORKDIR}/defconfig > ${S}/.config
> > >
> > > sed -i -e '/CONFIG_STATIC/d' .config
> > > echo "# CONFIG_STATIC is not set" >> .config
> > >
> > > + sed -i -e '/CONFIG_LSOF/d' .config
> > > + echo "# CONFIG_LSOF is not set" >> .config
> > >
> > > for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
> > >
> > > ${S}/.config
> > >
> > > sed -i -e '${configmangle}' ${S}/.config
> >
> > Why is this desirable?
>
> Well, the more appropriate question would be: could we not just update the
> defconfig and then make that change to it directly?
>
> (In case it isn't clear - lsof is being disabled because it was not enabled in
> the previous 1.19.4 version.)
Ah, I see. In that case, yes, just updating the defconfig is the right
thing to do. The patch above will, if I am understanding it correctly,
make it impossible (or at least quite hard) for any other layer to turn
CONFIG_LSOF back on.
p.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 8:28 ` Phil Blundell
@ 2012-08-20 8:31 ` Paul Eggleton
2012-08-20 9:28 ` Radu Moisan
0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2012-08-20 8:31 UTC (permalink / raw)
To: openembedded-core; +Cc: Phil Blundell
On Monday 20 August 2012 09:28:41 Phil Blundell wrote:
> On Mon, 2012-08-20 at 09:25 +0100, Paul Eggleton wrote:
> > On Monday 20 August 2012 09:18:17 Phil Blundell wrote:
> > > On Mon, 2012-08-20 at 10:46 +0300, Radu Moisan wrote:
> > > > @@ -97,6 +97,8 @@ do_prepare_config () {
> > > >
> > > > < ${WORKDIR}/defconfig > ${S}/.config
> > > >
> > > > sed -i -e '/CONFIG_STATIC/d' .config
> > > > echo "# CONFIG_STATIC is not set" >> .config
> > > >
> > > > + sed -i -e '/CONFIG_LSOF/d' .config
> > > > + echo "# CONFIG_LSOF is not set" >> .config
> > > >
> > > > for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
> > > >
> > > > ${S}/.config
> > > >
> > > > sed -i -e '${configmangle}' ${S}/.config
> > >
> > > Why is this desirable?
> >
> > Well, the more appropriate question would be: could we not just update the
> > defconfig and then make that change to it directly?
> >
> > (In case it isn't clear - lsof is being disabled because it was not
> > enabled in the previous 1.19.4 version.)
>
> Ah, I see. In that case, yes, just updating the defconfig is the right
> thing to do. The patch above will, if I am understanding it correctly,
> make it impossible (or at least quite hard) for any other layer to turn
> CONFIG_LSOF back on.
Good point, that would be undesirable.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 8:31 ` Paul Eggleton
@ 2012-08-20 9:28 ` Radu Moisan
2012-08-20 9:29 ` Paul Eggleton
2012-08-20 9:31 ` Phil Blundell
0 siblings, 2 replies; 9+ messages in thread
From: Radu Moisan @ 2012-08-20 9:28 UTC (permalink / raw)
To: openembedded-core
On 08/20/2012 11:31 AM, Paul Eggleton wrote:
> On Monday 20 August 2012 09:28:41 Phil Blundell wrote:
>> On Mon, 2012-08-20 at 09:25 +0100, Paul Eggleton wrote:
>>> On Monday 20 August 2012 09:18:17 Phil Blundell wrote:
>>>> On Mon, 2012-08-20 at 10:46 +0300, Radu Moisan wrote:
>>>>> @@ -97,6 +97,8 @@ do_prepare_config () {
>>>>>
>>>>> < ${WORKDIR}/defconfig > ${S}/.config
>>>>>
>>>>> sed -i -e '/CONFIG_STATIC/d' .config
>>>>> echo "# CONFIG_STATIC is not set" >> .config
>>>>>
>>>>> + sed -i -e '/CONFIG_LSOF/d' .config
>>>>> + echo "# CONFIG_LSOF is not set" >> .config
>>>>>
>>>>> for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
>>>>>
>>>>> ${S}/.config
>>>>>
>>>>> sed -i -e '${configmangle}' ${S}/.config
>>>> Why is this desirable?
>>> Well, the more appropriate question would be: could we not just update the
>>> defconfig and then make that change to it directly?
>>>
>>> (In case it isn't clear - lsof is being disabled because it was not
>>> enabled in the previous 1.19.4 version.)
>> Ah, I see. In that case, yes, just updating the defconfig is the right
>> thing to do. The patch above will, if I am understanding it correctly,
>> make it impossible (or at least quite hard) for any other layer to turn
>> CONFIG_LSOF back on.
> Good point, that would be undesirable.
Any suggestions on how to do that?
thanks,
radu
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 9:28 ` Radu Moisan
@ 2012-08-20 9:29 ` Paul Eggleton
2012-08-20 9:31 ` Phil Blundell
1 sibling, 0 replies; 9+ messages in thread
From: Paul Eggleton @ 2012-08-20 9:29 UTC (permalink / raw)
To: Radu Moisan; +Cc: openembedded-core
On Monday 20 August 2012 12:28:24 Radu Moisan wrote:
> On 08/20/2012 11:31 AM, Paul Eggleton wrote:
> > On Monday 20 August 2012 09:28:41 Phil Blundell wrote:
> >> On Mon, 2012-08-20 at 09:25 +0100, Paul Eggleton wrote:
> >>> On Monday 20 August 2012 09:18:17 Phil Blundell wrote:
> >>>> On Mon, 2012-08-20 at 10:46 +0300, Radu Moisan wrote:
> >>>>> @@ -97,6 +97,8 @@ do_prepare_config () {
> >>>>>
> >>>>> < ${WORKDIR}/defconfig > ${S}/.config
> >>>>>
> >>>>> sed -i -e '/CONFIG_STATIC/d' .config
> >>>>> echo "# CONFIG_STATIC is not set" >> .config
> >>>>>
> >>>>> + sed -i -e '/CONFIG_LSOF/d' .config
> >>>>> + echo "# CONFIG_LSOF is not set" >> .config
> >>>>>
> >>>>> for i in 'CROSS' 'DISTRO FEATURES'; do echo "### $i"; done >> \
> >>>>>
> >>>>> ${S}/.config
> >>>>>
> >>>>> sed -i -e '${configmangle}' ${S}/.config
> >>>>
> >>>> Why is this desirable?
> >>>
> >>> Well, the more appropriate question would be: could we not just update
> >>> the
> >>> defconfig and then make that change to it directly?
> >>>
> >>> (In case it isn't clear - lsof is being disabled because it was not
> >>> enabled in the previous 1.19.4 version.)
> >>
> >> Ah, I see. In that case, yes, just updating the defconfig is the right
> >> thing to do. The patch above will, if I am understanding it correctly,
> >> make it impossible (or at least quite hard) for any other layer to turn
> >> CONFIG_LSOF back on.
> >
> > Good point, that would be undesirable.
>
> Any suggestions on how to do that?
Build the new version of busybox once (actually, just running -c configure
ought to be enough), copy the generated .config over the top of defconfig in the
metadata, then edit it as desired.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 9:28 ` Radu Moisan
2012-08-20 9:29 ` Paul Eggleton
@ 2012-08-20 9:31 ` Phil Blundell
2012-08-20 13:02 ` Anders Darander
1 sibling, 1 reply; 9+ messages in thread
From: Phil Blundell @ 2012-08-20 9:31 UTC (permalink / raw)
To: Radu Moisan; +Cc: openembedded-core
On Mon, 2012-08-20 at 12:28 +0300, Radu Moisan wrote:
> Any suggestions on how to do that?
"vi defconfig", then add
# CONFIG_LSOF is not set
at some appropriate place.
Alternatively, bitbake -c menuconfig busybox, make sure lsof is
disabled, then copy the resulting .config file back into defconfig.
p.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2] busybox: Upgrade to upstream 1.20.2
2012-08-20 9:31 ` Phil Blundell
@ 2012-08-20 13:02 ` Anders Darander
0 siblings, 0 replies; 9+ messages in thread
From: Anders Darander @ 2012-08-20 13:02 UTC (permalink / raw)
To: openembedded-core
* Phil Blundell <philb@gnu.org> [120820 11:33]:
> On Mon, 2012-08-20 at 12:28 +0300, Radu Moisan wrote:
> > Any suggestions on how to do that?
> "vi defconfig", then add
> # CONFIG_LSOF is not set
> at some appropriate place.
> Alternatively, bitbake -c menuconfig busybox, make sure lsof is
> disabled, then copy the resulting .config file back into defconfig.
And as a last step (regardless of which way you're modifying the
defconfig) use git diff to check that you're changing things correclty,
i.e. not enabling more functionality than before (unless there's a good
reason for this).
Apart from that, I prefer that we copy the defconfig from a build, as
busybox sometimes likes to re-order the configuration options between
releases. I just happen to prefer to easily be able to compare my built
config with the supplied defconfig, with the minimum of changes.
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-08-20 13:14 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-20 7:46 [PATCH v2] busybox: Upgrade to upstream 1.20.2 Radu Moisan
2012-08-20 8:18 ` Phil Blundell
2012-08-20 8:25 ` Paul Eggleton
2012-08-20 8:28 ` Phil Blundell
2012-08-20 8:31 ` Paul Eggleton
2012-08-20 9:28 ` Radu Moisan
2012-08-20 9:29 ` Paul Eggleton
2012-08-20 9:31 ` Phil Blundell
2012-08-20 13:02 ` Anders Darander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox