mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	microblaze: add endianness options to LDFLAGS instead of LD
With the recent syntax extension, Kconfig is now able to evaluate the compiler / toolchain capability. However, accumulating flags to 'LD' is not compatible with the way it works; 'LD' must be passed to Kconfig to call $(ld-option,...) from Kconfig files. If you tweak 'LD' in arch Makefile depending on CONFIG_CPU_BIG_ENDIAN, this would end up with circular dependency between Makefile and Kconfig. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
		
							parent
							
								
									ed207a7434
								
							
						
					
					
						commit
						0fbe9a245c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -40,11 +40,11 @@ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
 | 
				
			||||||
ifdef CONFIG_CPU_BIG_ENDIAN
 | 
					ifdef CONFIG_CPU_BIG_ENDIAN
 | 
				
			||||||
KBUILD_CFLAGS += -mbig-endian
 | 
					KBUILD_CFLAGS += -mbig-endian
 | 
				
			||||||
KBUILD_AFLAGS += -mbig-endian
 | 
					KBUILD_AFLAGS += -mbig-endian
 | 
				
			||||||
LD += -EB
 | 
					LDFLAGS += -EB
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
KBUILD_CFLAGS += -mlittle-endian
 | 
					KBUILD_CFLAGS += -mlittle-endian
 | 
				
			||||||
KBUILD_AFLAGS += -mlittle-endian
 | 
					KBUILD_AFLAGS += -mlittle-endian
 | 
				
			||||||
LD += -EL
 | 
					LDFLAGS += -EL
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
 | 
					CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue