mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
board: phytec: fix link error when disabling PHYTEC_SOM_DETECTION
Commitaa7858fe5e
("board: phytec: som_detection: move definitions to source file") moved function definitions from header to source file. Makefile however was not updated to unconditionally (from [..]_SOM_DETECTION) build the imx8 and phytec som detection units. Also remove unused includes that cause build failures on arm 32bit boards. SoM detection shall support 32bit boards as well, but arch specific code should not be included in the generic module. Fixes:aa7858fe5e
("board: phytec: som_detection: move definitions to source file") Signed-off-by: Yannic Moog <y.moog@phytec.de>
This commit is contained in:
parent
645add770e
commit
1aebea9bde
2 changed files with 2 additions and 4 deletions
|
@ -7,5 +7,5 @@ ifdef CONFIG_SPL_BUILD
|
|||
obj- := __dummy__.o
|
||||
endif
|
||||
|
||||
obj-$(CONFIG_PHYTEC_SOM_DETECTION) += phytec_som_detection.o
|
||||
obj-$(CONFIG_PHYTEC_IMX8M_SOM_DETECTION) += imx8m_som_detection.o
|
||||
obj-y += phytec_som_detection.o
|
||||
obj-$(CONFIG_ARCH_IMX8M) += imx8m_som_detection.o
|
||||
|
|
|
@ -5,8 +5,6 @@
|
|||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/mach-imx/mxc_i2c.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <dm/device.h>
|
||||
#include <dm/uclass.h>
|
||||
#include <i2c.h>
|
||||
|
|
Loading…
Reference in a new issue