Hi @Sanket_Parekh , thank you very much for your very enthusiastic supports.
I run "make menuconfig" and Enable Flex SPI config. Then "make"
But it has some errors.
As a matter of fact, I really hasn't known How to build the project. After I turn a few code, I usually run "imx.make.sh" to rebuild all. It's really really complicated.
Can you teach me how to make?
and this code bellow is error I met when I make after make menuconfig.
drivers/net/phy/mscc/mscc_main.c: In function ‘vsc8514_validate_inband_aneg’:
drivers/net/phy/mscc/mscc_main.c:2195:9: error: ‘PHY_INBAND_ANEG_OFF’ undeclared (first use in this function)
2195 | return PHY_INBAND_ANEG_OFF | PHY_INBAND_ANEG_ON;
| ^~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2195:9: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/phy/mscc/mscc_main.c:2195:31: error: ‘PHY_INBAND_ANEG_ON’ undeclared (first use in this function)
2195 | return PHY_INBAND_ANEG_OFF | PHY_INBAND_ANEG_ON;
| ^~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c: At top level:
drivers/net/phy/mscc/mscc_main.c:2416:3: error: ‘struct phy_driver’ has no member named ‘validate_inband_aneg’
2416 | .validate_inband_aneg = vsc8514_validate_inband_aneg,
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2416:26: error: initialization of ‘int (*)(struct phy_device *, struct ethtool_tunable *, void *)’ from incompatible pointer type ‘int (*)(struct phy_device *, phy_interface_t)’ {aka ‘int (*)(struct phy_device *, enum <anonymous>)’} [-Werror=incompatible-pointer-types]
2416 | .validate_inband_aneg = vsc8514_validate_inband_aneg,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2416:26: note: (near initialization for ‘vsc85xx_driver[2].get_tunable’)
drivers/net/phy/mscc/mscc_main.c:2417:3: error: ‘struct phy_driver’ has no member named ‘config_inband_aneg’
2417 | .config_inband_aneg = vsc8514_config_inband_aneg,
| ^~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2417:24: error: initialization of ‘int (*)(struct phy_device *, struct ethtool_tunable *, const void *)’ from incompatible pointer type ‘int (*)(struct phy_device *, bool)’ {aka ‘int (*)(struct phy_device *, _Bool)’} [-Werror=incompatible-pointer-types]
2417 | .config_inband_aneg = vsc8514_config_inband_aneg,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/mscc/mscc_main.c:2417:24: note: (near initialization for ‘vsc85xx_driver[2].set_tunable’)
drivers/net/phy/mscc/mscc_main.c: In function ‘vsc8514_validate_inband_aneg’:
drivers/net/phy/mscc/mscc_main.c:2196:1: error: control reaches end of non-void function [-Werror=return-type]
2196 | }
| ^
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:287: drivers/net/phy/mscc/mscc_main.o] Error 1
make[3]: *** [scripts/Makefile.build:549: drivers/net/phy/mscc] Error 2
make[2]: *** [scripts/Makefile.build:549: drivers/net/phy] Error 2
make[1]: *** [scripts/Makefile.build:549: drivers/net] Error 2
make: *** [Makefile:1944: drivers] Error 2