Makefile:416: *** mixed implicit and normal rules: deprecated syntax

Ubuntu 16.04.2 compiler environment  ARM-linux3.4.5   Linux-2.6.22.6

    In compiling linux-2.6.22.6 version of the kernel source code, according to their own board need to patch after patch, a default configuration that is running

myroot@myroot:~/system/kernel/linux-2.6.22.6$:~/system/kernel/linux-2.6.22.6$ make s3c2410_defconfig  

    When, the following error message appears:

Makefile:416: *** mixed implicit and normal rules: deprecated syntax
Makefile:1449: *** mixed implicit and normal rules: deprecated syntax

google a bit, because that is the version used by linux-2.6.22.6 older version count, and make use of the -v argument I can see the use of

GNU Make 4.1 

Is part of the new version, the rules make for some older versions of the kernel source code has been modified, so there is such error, so it is necessary for the main kernel source Makefile make the following changes:

The first is the first mistake, follow the prompts to navigate to the 416 line, see the following code:

config %config: scripts_basic outputmakefile FORCE

It should be amended to

%config %config: scripts_basic outputmakefile FORCE

Then the prompt line 1449, as follows:

/ %/: prepare scripts FORCE

It should be amended to

 %/: prepare scripts FORCE

After completing the execution again make s3c2410_defconfig, you can see the configuration smoothly

#
# configuration written to .config
#


Since the learning phase using an older version of the source code will be more, and use the compiler environment and associated tools is relatively new, the problem in other older versions of the source code Makefile currently experiencing have met, you can be similar solutions.


Welcome to exchange, discuss or correct me! Common progress!


Published 19 original articles · won praise 7 · views 6941

Guess you like

Origin blog.csdn.net/G_METHOD/article/details/79514076