[SLOF] [PATCH] Define 'open' and 'close' words of the /aliases nodes right from the start

Alexey Kardashevskiy aik at ozlabs.ru
Thu Jul 20 15:37:26 AEST 2017


On 19/07/17 23:37, Thomas Huth wrote:
> It's much easier to do this when we create the node instead of
> looking up the device node again later in each of the boards.
> 
> Signed-off-by: Thomas Huth <thuth at redhat.com>

Thanks, applied.

> ---
>  board-js2x/slof/tree.fs | 5 -----
>  board-qemu/slof/tree.fs | 5 -----
>  slof/fs/root.fs         | 2 ++
>  3 files changed, 2 insertions(+), 10 deletions(-)
> 
> diff --git a/board-js2x/slof/tree.fs b/board-js2x/slof/tree.fs
> index 1f924ea..10946ac 100644
> --- a/board-js2x/slof/tree.fs
> +++ b/board-js2x/slof/tree.fs
> @@ -216,11 +216,6 @@ s" /openprom" find-device
>     THEN
>  device-end
>  
> -s" /aliases" find-device
> -   : open  true ;
> -   : close ;
> -device-end
> -
>  s" /mmu" open-dev encode-int s" mmu" set-chosen
>  
>  #include "available.fs"
> diff --git a/board-qemu/slof/tree.fs b/board-qemu/slof/tree.fs
> index e71743b..cc35fa3 100644
> --- a/board-qemu/slof/tree.fs
> +++ b/board-qemu/slof/tree.fs
> @@ -173,11 +173,6 @@ s" /openprom" find-device
>     0 0 s" relative-addressing" property
>  device-end
>  
> -s" /aliases" find-device
> -   : open  true ;
> -   : close ;
> -device-end
> -
>  s" /mmu" open-dev encode-int s" mmu" set-chosen
>  
>  #include "available.fs"
> diff --git a/slof/fs/root.fs b/slof/fs/root.fs
> index 952b00e..44d087a 100644
> --- a/slof/fs/root.fs
> +++ b/slof/fs/root.fs
> @@ -57,6 +57,8 @@ THEN
>  \ Create /aliases
>  new-device
>      s" aliases" device-name
> +   : open  true ;
> +   : close ;
>  finish-device
>  
>  \ Create /options
> 


-- 
Alexey


More information about the SLOF mailing list