forked from OERV-BSP/u-boot
disk/part.c: Make features optional
If we don't want to build support for any partition types we can now add #undef CONFIG_PARTITIONS in a board config file to keep this from being compiled in. Otherwise boards assume this is compiled in by default Signed-off-by: Matthew McClintock <msm@freescale.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
07c07635b4
commit
df3fc52608
@@ -522,10 +522,12 @@ mg_write_exit:
|
||||
return err;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PARTITIONS
|
||||
block_dev_desc_t *mg_disk_get_dev(int dev)
|
||||
{
|
||||
return ((block_dev_desc_t *) & mg_disk_dev);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* must override this function */
|
||||
struct mg_drv_data * __attribute__((weak)) mg_get_drv_data (void)
|
||||
|
||||
Reference in New Issue
Block a user