]> git.ozlabs.org Git - petitboot/commit
discover: Make boot_priorities more flexible
authorJeremy Kerr <jk@ozlabs.org>
Thu, 30 Jan 2014 08:19:20 +0000 (16:19 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 30 Jan 2014 13:59:10 +0000 (21:59 +0800)
commitaa530148044a7c6d7ec7b6a32672cc69d53979b2
tree09e9ef7bb4a1f0c6976657c581553bb00ea5c40f
parenta984595cfb4910ba6f464c69c316f1613f10f894
discover: Make boot_priorities more flexible

Rather than rely on the ordering of the boot_priorities array to define
which device types have a higher "default boot" priority, this change
introduces a slightly more flexible way of priority lookups, by adding a
separate priority field to struct boot_priority.

This means we can have an unordered array, change priorities without
re-writing the array, and implementing a disable mechanism.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
discover/platform.c
lib/pb-config/pb-config.c
lib/pb-protocol/pb-protocol.c
lib/types/types.h