diff options
author | Thomas Huth <thuth@redhat.com> | 2017-07-19 15:37:45 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2017-07-20 15:36:25 +1000 |
commit | 1199592fb4bc415bc417e7cd2e8b15f0bdc35f17 (patch) | |
tree | ca1300e48ffbe6d28b2b31bed8a42b117b620cdc | |
parent | f72a37713fea47da625238f032c245f40b987a28 (diff) | |
download | SLOF-1199592fb4bc415bc417e7cd2e8b15f0bdc35f17.zip SLOF-1199592fb4bc415bc417e7cd2e8b15f0bdc35f17.tar.gz SLOF-1199592fb4bc415bc417e7cd2e8b15f0bdc35f17.tar.bz2 |
Define 'open' and 'close' words of the /aliases nodes right from the start
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@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
-rw-r--r-- | board-js2x/slof/tree.fs | 5 | ||||
-rw-r--r-- | board-qemu/slof/tree.fs | 5 | ||||
-rw-r--r-- | 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 |