* [PATCH] wpa-supplicant: don't reset ${S}
@ 2012-05-14 7:26 Jesse Zhang
2012-05-16 6:56 ` Jesse Zhang
0 siblings, 1 reply; 3+ messages in thread
From: Jesse Zhang @ 2012-05-14 7:26 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
If ${S} is set to the subdir wpa_supplicant, patches with changes in
other subdirs can't be applied. Fix ${S} so patches can be applied in
the normal way.
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
---
I was adding a patch to wpa-supplicant using bbappend in our layer, but it was
impossible since ${S} was overridden and set to a subdir in the unpacked
source.
Jesse
.../wpa-supplicant/wpa-supplicant-0.7.inc | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
index aabb3df..1db4acf 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
@@ -3,9 +3,9 @@ HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
BUGTRACKER = "http://hostap.epitest.fi/bugz/"
SECTION = "network"
LICENSE = "GPLv2 | BSD"
-LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
- file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
- file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
+LIC_FILES_CHKSUM = "file://COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+ file://README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
+ file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
DEPENDS = "gnutls dbus libnl"
RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
@@ -16,7 +16,7 @@ SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
file://wpa_supplicant.conf-sane \
file://99_wpa_supplicant"
-S = "${WORKDIR}/wpa_supplicant-${PV}/wpa_supplicant"
+S = "${WORKDIR}/wpa_supplicant-${PV}/"
PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
FILES_wpa-supplicant-passphrase = "${sbindir}/wpa_passphrase"
@@ -24,16 +24,19 @@ FILES_wpa-supplicant-cli = "${sbindir}/wpa_cli"
FILES_${PN} += "${datadir}/dbus-1/system-services/*"
do_configure () {
+ cd wpa_supplicant
install -m 0755 ${WORKDIR}/defconfig-gnutls .config
}
export EXTRA_CFLAGS = "${CFLAGS}"
do_compile () {
+ cd wpa_supplicant
unset CFLAGS CPPFLAGS CXXFLAGS
oe_runmake
}
do_install () {
+ cd wpa_supplicant
install -d ${D}${sbindir}
install -m 755 wpa_supplicant ${D}${sbindir}
install -m 755 wpa_cli ${D}${sbindir}
@@ -56,9 +59,9 @@ do_install () {
ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
install -d ${D}/${sysconfdir}/dbus-1/system.d
- install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
+ install -m 644 ${S}/wpa_supplicant/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
install -d ${D}/${datadir}/dbus-1/system-services
- install -m 644 ${S}/dbus/*.service ${D}/${datadir}/dbus-1/system-services
+ install -m 644 ${S}/wpa_supplicant/dbus/*.service ${D}/${datadir}/dbus-1/system-services
sed -i -e s:${base_sbindir}:${sbindir}:g ${D}/${datadir}/dbus-1/system-services/*.service
install -d ${D}/etc/default/volatiles
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] wpa-supplicant: don't reset ${S}
2012-05-14 7:26 [PATCH] wpa-supplicant: don't reset ${S} Jesse Zhang
@ 2012-05-16 6:56 ` Jesse Zhang
0 siblings, 0 replies; 3+ messages in thread
From: Jesse Zhang @ 2012-05-16 6:56 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
Please ignore this one.
I found I could just use the "patchdir" parameter.
jesse
On 05/14/2012 03:26 PM, Jesse Zhang wrote:
> If ${S} is set to the subdir wpa_supplicant, patches with changes in
> other subdirs can't be applied. Fix ${S} so patches can be applied in
> the normal way.
>
> Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
> ---
>
> I was adding a patch to wpa-supplicant using bbappend in our layer, but it was
> impossible since ${S} was overridden and set to a subdir in the unpacked
> source.
>
> Jesse
>
> .../wpa-supplicant/wpa-supplicant-0.7.inc | 15 +++++++++------
> 1 files changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
> index aabb3df..1db4acf 100644
> --- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
> +++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
> @@ -3,9 +3,9 @@ HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
> BUGTRACKER = "http://hostap.epitest.fi/bugz/"
> SECTION = "network"
> LICENSE = "GPLv2 | BSD"
> -LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
> - file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
> - file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
> + file://README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
> + file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
> DEPENDS = "gnutls dbus libnl"
> RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
>
> @@ -16,7 +16,7 @@ SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
> file://wpa_supplicant.conf-sane \
> file://99_wpa_supplicant"
>
> -S = "${WORKDIR}/wpa_supplicant-${PV}/wpa_supplicant"
> +S = "${WORKDIR}/wpa_supplicant-${PV}/"
>
> PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
> FILES_wpa-supplicant-passphrase = "${sbindir}/wpa_passphrase"
> @@ -24,16 +24,19 @@ FILES_wpa-supplicant-cli = "${sbindir}/wpa_cli"
> FILES_${PN} += "${datadir}/dbus-1/system-services/*"
>
> do_configure () {
> + cd wpa_supplicant
> install -m 0755 ${WORKDIR}/defconfig-gnutls .config
> }
>
> export EXTRA_CFLAGS = "${CFLAGS}"
> do_compile () {
> + cd wpa_supplicant
> unset CFLAGS CPPFLAGS CXXFLAGS
> oe_runmake
> }
>
> do_install () {
> + cd wpa_supplicant
> install -d ${D}${sbindir}
> install -m 755 wpa_supplicant ${D}${sbindir}
> install -m 755 wpa_cli ${D}${sbindir}
> @@ -56,9 +59,9 @@ do_install () {
> ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
>
> install -d ${D}/${sysconfdir}/dbus-1/system.d
> - install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
> + install -m 644 ${S}/wpa_supplicant/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
> install -d ${D}/${datadir}/dbus-1/system-services
> - install -m 644 ${S}/dbus/*.service ${D}/${datadir}/dbus-1/system-services
> + install -m 644 ${S}/wpa_supplicant/dbus/*.service ${D}/${datadir}/dbus-1/system-services
> sed -i -e s:${base_sbindir}:${sbindir}:g ${D}/${datadir}/dbus-1/system-services/*.service
>
> install -d ${D}/etc/default/volatiles
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] wpa-supplicant: don't reset ${S}
@ 2012-05-14 9:35 Jesse Zhang
0 siblings, 0 replies; 3+ messages in thread
From: Jesse Zhang @ 2012-05-14 9:35 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
If ${S} is set to the subdir wpa_supplicant, patches with changes in
other subdirs can't be applied. Fix ${S} so patches can be applied in
the normal way.
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
---
[Resending. The last copy didn't appear after two hours. Sorry for the
inconvenience.]
I was adding a patch to wpa-supplicant using bbappend in our layer, but it was
impossible since ${S} was overridden and set to a subdir in the unpacked
source.
Jesse
.../wpa-supplicant/wpa-supplicant-0.7.inc | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
index aabb3df..1db4acf 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-0.7.inc
@@ -3,9 +3,9 @@ HOMEPAGE = "http://hostap.epitest.fi/wpa_supplicant/"
BUGTRACKER = "http://hostap.epitest.fi/bugz/"
SECTION = "network"
LICENSE = "GPLv2 | BSD"
-LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
- file://../README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
- file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
+LIC_FILES_CHKSUM = "file://COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
+ file://README;md5=54cfc88015d3ce83f7156e63c6bb1738 \
+ file://wpa_supplicant/wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
DEPENDS = "gnutls dbus libnl"
RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
@@ -16,7 +16,7 @@ SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
file://wpa_supplicant.conf-sane \
file://99_wpa_supplicant"
-S = "${WORKDIR}/wpa_supplicant-${PV}/wpa_supplicant"
+S = "${WORKDIR}/wpa_supplicant-${PV}/"
PACKAGES_prepend = "wpa-supplicant-passphrase wpa-supplicant-cli "
FILES_wpa-supplicant-passphrase = "${sbindir}/wpa_passphrase"
@@ -24,16 +24,19 @@ FILES_wpa-supplicant-cli = "${sbindir}/wpa_cli"
FILES_${PN} += "${datadir}/dbus-1/system-services/*"
do_configure () {
+ cd wpa_supplicant
install -m 0755 ${WORKDIR}/defconfig-gnutls .config
}
export EXTRA_CFLAGS = "${CFLAGS}"
do_compile () {
+ cd wpa_supplicant
unset CFLAGS CPPFLAGS CXXFLAGS
oe_runmake
}
do_install () {
+ cd wpa_supplicant
install -d ${D}${sbindir}
install -m 755 wpa_supplicant ${D}${sbindir}
install -m 755 wpa_cli ${D}${sbindir}
@@ -56,9 +59,9 @@ do_install () {
ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
install -d ${D}/${sysconfdir}/dbus-1/system.d
- install -m 644 ${S}/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
+ install -m 644 ${S}/wpa_supplicant/dbus/dbus-wpa_supplicant.conf ${D}/${sysconfdir}/dbus-1/system.d
install -d ${D}/${datadir}/dbus-1/system-services
- install -m 644 ${S}/dbus/*.service ${D}/${datadir}/dbus-1/system-services
+ install -m 644 ${S}/wpa_supplicant/dbus/*.service ${D}/${datadir}/dbus-1/system-services
sed -i -e s:${base_sbindir}:${sbindir}:g ${D}/${datadir}/dbus-1/system-services/*.service
install -d ${D}/etc/default/volatiles
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-16 7:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-14 7:26 [PATCH] wpa-supplicant: don't reset ${S} Jesse Zhang
2012-05-16 6:56 ` Jesse Zhang
2012-05-14 9:35 Jesse Zhang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.