diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-01-12 12:25:38 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-01-12 12:25:38 +0000 |
commit | eb2188c0e229799d7fc619fbff66d70f8f5b76c6 (patch) | |
tree | 5f58304bf684bc84e183fd5fc7ad99bd94786a41 /target/linux/ar71xx/patches-3.6/508-MIPS-ath79-prom-image-command-line-hack.patch | |
parent | fe86bc937096e4b349c4394a71bc3b48daae45db (diff) | |
download | mtk-20170518-eb2188c0e229799d7fc619fbff66d70f8f5b76c6.zip mtk-20170518-eb2188c0e229799d7fc619fbff66d70f8f5b76c6.tar.gz mtk-20170518-eb2188c0e229799d7fc619fbff66d70f8f5b76c6.tar.bz2 |
ar71xx: remove 3.6 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35114
Diffstat (limited to 'target/linux/ar71xx/patches-3.6/508-MIPS-ath79-prom-image-command-line-hack.patch')
-rw-r--r-- | target/linux/ar71xx/patches-3.6/508-MIPS-ath79-prom-image-command-line-hack.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/target/linux/ar71xx/patches-3.6/508-MIPS-ath79-prom-image-command-line-hack.patch b/target/linux/ar71xx/patches-3.6/508-MIPS-ath79-prom-image-command-line-hack.patch deleted file mode 100644 index 72a3b56..0000000 --- a/target/linux/ar71xx/patches-3.6/508-MIPS-ath79-prom-image-command-line-hack.patch +++ /dev/null @@ -1,57 +0,0 @@ ---- a/arch/mips/ath79/prom.c -+++ b/arch/mips/ath79/prom.c -@@ -70,6 +70,35 @@ static const char * __init ath79_prom_fi - return ret; - } - -+#ifdef CONFIG_IMAGE_CMDLINE_HACK -+extern char __image_cmdline[]; -+ -+static int __init ath79_use_image_cmdline(void) -+{ -+ char *p = __image_cmdline; -+ int replace = 0; -+ -+ if (*p == '-') { -+ replace = 1; -+ p++; -+ } -+ -+ if (*p == '\0') -+ return 0; -+ -+ if (replace) { -+ strlcpy(arcs_cmdline, p, sizeof(arcs_cmdline)); -+ } else { -+ strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline)); -+ strlcat(arcs_cmdline, p, sizeof(arcs_cmdline)); -+ } -+ -+ return 1; -+} -+#else -+static inline int ath79_use_image_cmdline(void) { return 0; } -+#endif -+ - static int __init ath79_prom_init_myloader(void) - { - struct myloader_info *mylo; -@@ -98,6 +127,8 @@ static int __init ath79_prom_init_myload - - ath79_prom_append_cmdline("ethaddr", mac_buf); - -+ ath79_use_image_cmdline(); -+ - return 1; - } - -@@ -105,6 +136,9 @@ static __init void ath79_prom_init_cmdli - { - int i; - -+ if (ath79_use_image_cmdline()) -+ return; -+ - if (!is_valid_ram_addr(argv)) - return; - |