* [PATCH 2/4] compat-wireless: remove 13-trace.patch, it's handled in compat now
2010-04-07 5:30 [PATCH 1/4] compat-wireless: remove patch part dealing with net/net_namespace.h Pavel Roskin
@ 2010-04-07 5:30 ` Pavel Roskin
2010-04-07 5:31 ` [PATCH 3/4] compat-wireless: remove 25-device_create.patch, it's handled by compat Pavel Roskin
2010-04-07 5:31 ` [PATCH 4/4] compat-wireless: find the actual remote URL Pavel Roskin
2 siblings, 0 replies; 5+ messages in thread
From: Pavel Roskin @ 2010-04-07 5:30 UTC (permalink / raw)
To: Luis R. Rodriguez, linux-wireless
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
patches/13-trace.patch | 63 ------------------------------------------------
1 files changed, 0 insertions(+), 63 deletions(-)
delete mode 100644 patches/13-trace.patch
diff --git a/patches/13-trace.patch b/patches/13-trace.patch
deleted file mode 100644
index e3fee40..0000000
--- a/patches/13-trace.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-Older kernels do not have trace/define_trace.h [1] and if there
-is something there that we can backport we will define it
-in or compat headers.
-
-[1] http://lxr.linux.no/#linux+v2.6.31/include/trace/define_trace.h
-
---- a/drivers/net/wireless/iwlwifi/iwl-devtrace.h
-+++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.h
-@@ -27,7 +27,9 @@
- #if !defined(__IWLWIFI_DEVICE_TRACE) || defined(TRACE_HEADER_MULTI_READ)
- #define __IWLWIFI_DEVICE_TRACE
-
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27))
- #include <linux/tracepoint.h>
-+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */
-
- #if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__)
- #undef TRACE_EVENT
-@@ -263,4 +265,6 @@ TRACE_EVENT(iwlwifi_dev_ucode_event,
- #define TRACE_INCLUDE_PATH .
- #undef TRACE_INCLUDE_FILE
- #define TRACE_INCLUDE_FILE iwl-devtrace
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30))
- #include <trace/define_trace.h>
-+#endif
---- a/drivers/net/wireless/iwmc3200wifi/trace.h
-+++ b/drivers/net/wireless/iwmc3200wifi/trace.h
-@@ -1,7 +1,9 @@
- #if !defined(__IWM_TRACE_H__) || defined(TRACE_HEADER_MULTI_READ)
- #define __IWM_TRACE_H__
-
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27))
- #include <linux/tracepoint.h>
-+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */
-
- #if !defined(CONFIG_IWM_TRACING)
- #undef TRACE_EVENT
-@@ -280,4 +282,6 @@ TRACE_EVENT(iwm_rx_packet,
- #define TRACE_INCLUDE_PATH .
- #undef TRACE_INCLUDE_FILE
- #define TRACE_INCLUDE_FILE trace
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30))
- #include <trace/define_trace.h>
-+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */
---- a/net/mac80211/driver-trace.h
-+++ b/net/mac80211/driver-trace.h
-@@ -1,7 +1,9 @@
- #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ)
- #define __MAC80211_DRIVER_TRACE
-
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27))
- #include <linux/tracepoint.h>
-+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */
- #include <net/mac80211.h>
- #include "ieee80211_i.h"
-
-@@ -772,4 +774,6 @@ TRACE_EVENT(drv_flush,
- #define TRACE_INCLUDE_PATH .
- #undef TRACE_INCLUDE_FILE
- #define TRACE_INCLUDE_FILE driver-trace
-+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30))
- #include <trace/define_trace.h>
-+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/4] compat-wireless: remove 25-device_create.patch, it's handled by compat
2010-04-07 5:30 [PATCH 1/4] compat-wireless: remove patch part dealing with net/net_namespace.h Pavel Roskin
2010-04-07 5:30 ` [PATCH 2/4] compat-wireless: remove 13-trace.patch, it's handled in compat now Pavel Roskin
@ 2010-04-07 5:31 ` Pavel Roskin
2010-04-07 5:31 ` [PATCH 4/4] compat-wireless: find the actual remote URL Pavel Roskin
2 siblings, 0 replies; 5+ messages in thread
From: Pavel Roskin @ 2010-04-07 5:31 UTC (permalink / raw)
To: Luis R. Rodriguez, linux-wireless
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
patches/25-device_create.patch | 20 --------------------
1 files changed, 0 insertions(+), 20 deletions(-)
delete mode 100644 patches/25-device_create.patch
diff --git a/patches/25-device_create.patch b/patches/25-device_create.patch
deleted file mode 100644
index 232816e..0000000
--- a/patches/25-device_create.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/drivers/net/wireless/mac80211_hwsim.c
-+++ b/drivers/net/wireless/mac80211_hwsim.c
-@@ -1211,8 +1211,17 @@ static int __init init_mac80211_hwsim(vo
- data = hw->priv;
- data->hw = hw;
-
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27))
- data->dev = device_create(hwsim_class, NULL, 0, hw,
- "hwsim%d", i);
-+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26))
-+ data->dev = device_create_drvdata(hwsim_class, NULL, 0, hw,
-+ "hwsim%d", i);
-+#else
-+ data->dev = device_create(hwsim_class, NULL, 0,
-+ "hwsim%d", i);
-+ dev_set_drvdata(data->dev, hw);
-+#endif
- if (IS_ERR(data->dev)) {
- printk(KERN_DEBUG
- "mac80211_hwsim: device_create "
^ permalink raw reply related [flat|nested] 5+ messages in thread* [PATCH 4/4] compat-wireless: find the actual remote URL
2010-04-07 5:30 [PATCH 1/4] compat-wireless: remove patch part dealing with net/net_namespace.h Pavel Roskin
2010-04-07 5:30 ` [PATCH 2/4] compat-wireless: remove 13-trace.patch, it's handled in compat now Pavel Roskin
2010-04-07 5:31 ` [PATCH 3/4] compat-wireless: remove 25-device_create.patch, it's handled by compat Pavel Roskin
@ 2010-04-07 5:31 ` Pavel Roskin
2010-04-07 7:12 ` Luis R. Rodriguez
2 siblings, 1 reply; 5+ messages in thread
From: Pavel Roskin @ 2010-04-07 5:31 UTC (permalink / raw)
To: Luis R. Rodriguez, linux-wireless
Don't assume the remote to be called "origin". Instead, find the
current branch first, defaulting to "master". Then find the
corresponding remote, defaulting to "origin". Then find the remote URL,
defaulting to "unknown". Reuse the remote URL for TREE_NAME.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
scripts/admin-update.sh | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh
index af4479a..5d8068d 100755
--- a/scripts/admin-update.sh
+++ b/scripts/admin-update.sh
@@ -295,15 +295,20 @@ done
DIR="$PWD"
cd $GIT_TREE
GIT_DESCRIBE=$(git describe)
+GIT_BRANCH=$(git branch --no-color |sed -n 's/^\* //p')
+GIT_BRANCH=${GIT_BRANCH-master}
+GIT_REMOTE=$(git config branch.${GIT_BRANCH}.remote)
+GIT_REMOTE=${GIT_REMOTE-origin}
+GIT_REMOTE_URL=$(git config remote.${GIT_REMOTE}.url)
+GIT_REMOTE_URL=${GIT_REMOTE_URL-unknown}
echo -e "${GREEN}Updated${NORMAL} from local tree: ${BLUE}${GIT_TREE}${NORMAL}"
-echo -e "Origin remote URL: ${CYAN}$(git config remote.origin.url)${NORMAL}"
+echo -e "Origin remote URL: ${CYAN}${GIT_REMOTE_URL}${NORMAL}"
cd $DIR
if [ -d ./.git ]; then
git describe > compat-release
cd $GIT_TREE
- TREE_NAME=$(git config remote.origin.url)
- TREE_NAME=${TREE_NAME##*/}
+ TREE_NAME=${GIT_REMOTE_URL##*/}
echo $TREE_NAME > $DIR/git-describe
echo $GIT_DESCRIBE >> $DIR/git-describe
^ permalink raw reply related [flat|nested] 5+ messages in thread