mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Remove package finding code that finds unrelated packages
git-svn-id: svn://coreboot.org/openbios/openbios-devel@232 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -119,17 +119,7 @@ defer find-dev
|
||||
" /packages" find-dev 0= if 2drop false exit then
|
||||
find-rel-dev 0= if false exit then
|
||||
|
||||
\ Find the most recent node that match. One could make life
|
||||
\ simple and add nodes at the head but I prefer it this way.
|
||||
>r
|
||||
" name" r@ get-package-property if " " then
|
||||
r@ begin >dn.peer @ dup while
|
||||
3dup
|
||||
" name" rot get-package-property if " " then
|
||||
strcmp
|
||||
0= if r> drop dup >r then
|
||||
repeat 3drop
|
||||
r> true
|
||||
true
|
||||
;
|
||||
|
||||
: open-package ( arg-str arg-len phandle -- ihandle | 0 )
|
||||
|
||||
Reference in New Issue
Block a user