2020-11-13 02:24 AM
Hello,
I try to build the kernel for the first time on my Ubuntu 18.04 new install.
Following the step by step Wiki build kernel.
make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040
The compilation runs fine for many files until this step.
Thank you by advance for any suggestion.
Regards
*****************
drivers/clk/clk-stm32mp1.c:1925:12: error: 'PCLK1' undeclared here (not in a function); did you mean 'PCLK'?
1925 | DIV_TABLE(PCLK1, "pclk1", "ck_mcu", CLK_IGNORE_UNUSED, RCC_APB1DIVR, 0,
| ^~~~~
drivers/clk/clk-stm32mp1.c:1260:9: note: in definition of macro 'DIV_TABLE'
1260 | .id = _id,\
| ^~~
drivers/clk/clk-stm32mp1.c:1928:12: error: 'PCLK2' undeclared here (not in a function); did you mean 'PCLK'?
1928 | DIV_TABLE(PCLK2, "pclk2", "ck_mcu", CLK_IGNORE_UNUSED, RCC_APB2DIVR, 0,
| ^~~~~
drivers/clk/clk-stm32mp1.c:1260:9: note: in definition of macro 'DIV_TABLE'
1260 | .id = _id,\
| ^~~
drivers/clk/clk-stm32mp1.c:1931:12: error: 'PCLK3' undeclared here (not in a function); did you mean 'PCLK'?
1931 | DIV_TABLE(PCLK3, "pclk3", "ck_mcu", CLK_IGNORE_UNUSED, RCC_APB3DIVR, 0,
| ^~~~~
drivers/clk/clk-stm32mp1.c:1260:9: note: in definition of macro 'DIV_TABLE'
1260 | .id = _id,\
| ^~~
drivers/clk/clk-stm32mp1.c:1934:12: error: 'PCLK4' undeclared here (not in a function); did you mean 'PCLK'?
1934 | DIV_TABLE(PCLK4, "pclk4", "ck_axi", CLK_IGNORE_UNUSED, RCC_APB4DIVR, 0,
| ^~~~~
drivers/clk/clk-stm32mp1.c:1260:9: note: in definition of macro 'DIV_TABLE'
1260 | .id = _id,\
| ^~~
drivers/clk/clk-stm32mp1.c:1937:12: error: 'PCLK5' undeclared here (not in a function); did you mean 'PCLK'?
1937 | DIV_TABLE(PCLK5, "pclk5", "ck_axi", CLK_IGNORE_UNUSED, RCC_APB5DIVR, 0,
| ^~~~~
drivers/clk/clk-stm32mp1.c:1260:9: note: in definition of macro 'DIV_TABLE'
1260 | .id = _id,\
| ^~~
scripts/Makefile.build:265: recipe for target 'drivers/clk/clk-stm32mp1.o' failed
make[2]: *** [drivers/clk/clk-stm32mp1.o] Error 1
scripts/Makefile.build:500: recipe for target 'drivers/clk' failed
make[1]: *** [drivers/clk] Error 2
Makefile:1691: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Solved! Go to Solution.
2020-11-15 01:47 PM
I would suggest following the instructions in README.HOW_TO.txt within the kernel source code and use the 'Configure on a build directory' approach. It does work. In my experience the Wiki is full of mistakes.
2020-11-15 01:47 PM
I would suggest following the instructions in README.HOW_TO.txt within the kernel source code and use the 'Configure on a build directory' approach. It does work. In my experience the Wiki is full of mistakes.
2020-11-15 01:55 PM
Thank you very muche AStev.2.
Give you a feedback.