Skip to content

Commit

Permalink
[settings] Add config/settings.h
Browse files Browse the repository at this point in the history
Move VMWARE_SETTINGS build configuration option from config/sideband.h
to a new config/settings.h.

Existing instances of config/local/sideband.h will not be affected,
since config.c still #includes config/sideband.h.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Jul 13, 2013
1 parent d839285 commit 2581952
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/config/config.c
Expand Up @@ -10,6 +10,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <config/general.h>
#include <config/console.h>
#include <config/sideband.h>
#include <config/settings.h>

/** @file
*
Expand Down Expand Up @@ -293,9 +294,13 @@ REQUIRE_OBJECT ( tap );
REQUIRE_OBJECT ( efi_bofm );
#endif /* BOFM_EFI */
#endif /* CONFIG_BOFM */

/*
* Drag in relevant settings sources
*/
#ifdef VMWARE_SETTINGS
REQUIRE_OBJECT ( guestinfo );
#endif /* VMWARE_SETTINGS */
#endif

/*
* Drag in selected keyboard map
Expand Down
16 changes: 16 additions & 0 deletions src/config/settings.h
@@ -0,0 +1,16 @@
#ifndef CONFIG_SETTINGS_H
#define CONFIG_SETTINGS_H

/** @file
*
* Configuration settings sources
*
*/

FILE_LICENCE ( GPL2_OR_LATER );

//#define VMWARE_SETTINGS /* VMware GuestInfo settings */

#include <config/local/settings.h>

#endif /* CONFIG_SETTINGS_H */
1 change: 0 additions & 1 deletion src/config/sideband.h
Expand Up @@ -10,7 +10,6 @@
FILE_LICENCE ( GPL2_OR_LATER );

//#define CONFIG_BOFM /* IBM's BladeCenter Open Fabric Manager */
//#define VMWARE_SETTINGS /* VMware GuestInfo settings */

#include <config/local/sideband.h>

Expand Down

0 comments on commit 2581952

Please sign in to comment.