diff mbox

[5/5] loaders: Remove netflash command

Message ID 1461913280-29906-6-git-send-email-thuth@redhat.com
State Accepted
Headers show

Commit Message

Thomas Huth April 29, 2016, 7:01 a.m. UTC
The old netflash code is not available in the net-snk anymore,
so it does not make sense to keep the Forth wrapper around.
Anyway, "update-flash -f net:..." can be used nowadays instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 clients/net-snk/app/netapps/netapps.h | 1 -
 slof/fs/loaders.fs                    | 4 ----
 2 files changed, 5 deletions(-)

Comments

Nikunj A Dadhania April 29, 2016, 7:37 a.m. UTC | #1
Thomas Huth <thuth@redhat.com> writes:

> The old netflash code is not available in the net-snk anymore,
> so it does not make sense to keep the Forth wrapper around.
> Anyway, "update-flash -f net:..." can be used nowadays instead.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>

> ---
>  clients/net-snk/app/netapps/netapps.h | 1 -
>  slof/fs/loaders.fs                    | 4 ----
>  2 files changed, 5 deletions(-)
>
> diff --git a/clients/net-snk/app/netapps/netapps.h b/clients/net-snk/app/netapps/netapps.h
> index 18e607f..20879c5 100644
> --- a/clients/net-snk/app/netapps/netapps.h
> +++ b/clients/net-snk/app/netapps/netapps.h
> @@ -20,7 +20,6 @@
>  
>  int netboot(int argc, char *argv[]);
>  int netsave(int argc, char *argv[]);
> -int netflash(int argc, char *argv[]);
>  int bcmflash(int argc, char *argv[]);
>  int mac_sync(int argc, char *argv[]);
>  int net_eeprom_version( void );
> diff --git a/slof/fs/loaders.fs b/slof/fs/loaders.fs
> index 276ba6b..1478c70 100644
> --- a/slof/fs/loaders.fs
> +++ b/slof/fs/loaders.fs
> @@ -60,10 +60,6 @@ CREATE load-list 2 cells allot load-list 2 cells erase
>  : .client-exec ( arg len -- rc ) set-bootargs (client-exec) ;
>  ' .client-exec to client-exec
>  
> -: netflash ( -- rc ) s" netflash 2000000 " (parse-line) $cat set-netbootpath
> -   client-exec
> -;
> -
>  : netsave  ( "addr len {filename}[,params]" -- rc )
>     (parse-line) dup 0> IF
>        s" netsave " 2swap $cat set-netbootpath client-exec
> -- 
> 1.8.3.1
>
> _______________________________________________
> SLOF mailing list
> SLOF@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/slof
diff mbox

Patch

diff --git a/clients/net-snk/app/netapps/netapps.h b/clients/net-snk/app/netapps/netapps.h
index 18e607f..20879c5 100644
--- a/clients/net-snk/app/netapps/netapps.h
+++ b/clients/net-snk/app/netapps/netapps.h
@@ -20,7 +20,6 @@ 
 
 int netboot(int argc, char *argv[]);
 int netsave(int argc, char *argv[]);
-int netflash(int argc, char *argv[]);
 int bcmflash(int argc, char *argv[]);
 int mac_sync(int argc, char *argv[]);
 int net_eeprom_version( void );
diff --git a/slof/fs/loaders.fs b/slof/fs/loaders.fs
index 276ba6b..1478c70 100644
--- a/slof/fs/loaders.fs
+++ b/slof/fs/loaders.fs
@@ -60,10 +60,6 @@  CREATE load-list 2 cells allot load-list 2 cells erase
 : .client-exec ( arg len -- rc ) set-bootargs (client-exec) ;
 ' .client-exec to client-exec
 
-: netflash ( -- rc ) s" netflash 2000000 " (parse-line) $cat set-netbootpath
-   client-exec
-;
-
 : netsave  ( "addr len {filename}[,params]" -- rc )
    (parse-line) dup 0> IF
       s" netsave " 2swap $cat set-netbootpath client-exec