[PATCH 4/8] at91: use make kernel_menuconfig and save for sam9x kernel config

Claudiu.Beznea at microchip.com Claudiu.Beznea at microchip.com
Fri Aug 27 06:17:57 PDT 2021


On 22.08.2021 14:56, Hauke Mehrtens wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> 
> ForwardedMessage.eml
> 
> Subject:
> Re: [PATCH 4/8] at91: use make kernel_menuconfig and save for sam9x kernel
> config
> From:
> Hauke Mehrtens <hauke at hauke-m.de>
> Date:
> 22.08.2021, 14:56
> 
> To:
> Claudiu Beznea <claudiu.beznea at microchip.com>, openwrt-devel at lists.openwrt.org
> 
> 
> On 8/20/21 1:42 PM, Claudiu Beznea wrote:
>> Use kernel_menuconfig and save for sam9x kernel config.
> 
> Is the result of this command the same? (executed with the sam9x and the
> sama5 sub target selected)

It is not as sam9x keeps ARM962 specific config options for AT91 SoCs
whereas sama5 keeps ARM Cortex-A5 specific config option for AT91 SoCs.
Different kernel options are selected based on the target core.

>   make kernel_oldconfig CONFIG_TARGET=subtarget
> This would run an oldconfig using the subtarget config.
> 
> I would prefer if you just squash the refresh of the kernel configuration
> into the "at91: kernel: bump to 5.10" so that the system is still building
> and booting after the first patch.

Sure, I'll do it in the next version.

Thank you for your review,
Claudiu Beznea

> 
> Hauke
> 
>>
>> Signed-off-by: Claudiu Beznea <claudiu.beznea at microchip.com>
>> ---
>>   target/linux/at91/sam9x/config-default | 61 +-------------------------
>>   1 file changed, 1 insertion(+), 60 deletions(-)
>>
>> diff --git a/target/linux/at91/sam9x/config-default
>> b/target/linux/at91/sam9x/config-default
>> index d0a1cbc0a45b..ebfd38d131db 100644
>> --- a/target/linux/at91/sam9x/config-default
>> +++ b/target/linux/at91/sam9x/config-default
>> @@ -1,22 +1,6 @@
>>   CONFIG_ALIGNMENT_TRAP=y
>>   CONFIG_ARCH_32BIT_OFF_T=y
>>   CONFIG_ARCH_CLOCKSOURCE_DATA=y
>> -CONFIG_ARCH_HAS_BINFMT_FLAT=y
>> -CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
>> -CONFIG_ARCH_HAS_DMA_WRITE_COMBINE=y
>> -CONFIG_ARCH_HAS_ELF_RANDOMIZE=y
>> -CONFIG_ARCH_HAS_FORTIFY_SOURCE=y
>> -CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
>> -CONFIG_ARCH_HAS_KCOV=y
>> -CONFIG_ARCH_HAS_KEEPINITRD=y
>> -CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y
>> -CONFIG_ARCH_HAS_PHYS_TO_DMA=y
>> -CONFIG_ARCH_HAS_SETUP_DMA_OPS=y
>> -CONFIG_ARCH_HAS_SET_MEMORY=y
>> -CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y
>> -CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y
>> -CONFIG_ARCH_HAS_TEARDOWN_DMA_OPS=y
>> -CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
>>   CONFIG_ARCH_HIBERNATION_POSSIBLE=y
>>   CONFIG_ARCH_KEEP_MEMBLOCK=y
>>   CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
>> @@ -27,14 +11,7 @@ CONFIG_ARCH_MULTI_V4_V5=y
>>   CONFIG_ARCH_MULTI_V5=y
>>   CONFIG_ARCH_NR_GPIO=0
>>   CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y
>> -CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y
>> -CONFIG_ARCH_SUPPORTS_UPROBES=y
>>   CONFIG_ARCH_SUSPEND_POSSIBLE=y
>> -CONFIG_ARCH_USE_BUILTIN_BSWAP=y
>> -CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y
>> -CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT=y
>> -CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
>> -CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
>>   CONFIG_ARM=y
>>   CONFIG_ARM_HAS_SG_CHAIN=y
>>   CONFIG_ARM_L1_CACHE_SHIFT=5
>> @@ -43,7 +20,6 @@ CONFIG_ARM_THUMB=y
>>   CONFIG_ARM_UNWIND=y
>>   CONFIG_AUTO_ZRELADDR=y
>>   CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK=y
>> -CONFIG_CC_HAS_KASAN_GENERIC=y
>>   CONFIG_CLKDEV_LOOKUP=y
>>   CONFIG_CLONE_BACKWARDS=y
>>   CONFIG_COMMON_CLK=y
>> @@ -98,42 +74,6 @@ CONFIG_HARDIRQS_SW_RESEND=y
>>   CONFIG_HAS_DMA=y
>>   CONFIG_HAS_IOMEM=y
>>   CONFIG_HAS_IOPORT_MAP=y
>> -CONFIG_HAVE_ARCH_AUDITSYSCALL=y
>> -CONFIG_HAVE_ARCH_JUMP_LABEL=y
>> -CONFIG_HAVE_ARCH_KGDB=y
>> -CONFIG_HAVE_ARCH_PFN_VALID=y
>> -CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
>> -CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y
>> -CONFIG_HAVE_ARCH_TRACEHOOK=y
>> -CONFIG_HAVE_CLK=y
>> -CONFIG_HAVE_CLK_PREPARE=y
>> -CONFIG_HAVE_CONTEXT_TRACKING=y
>> -CONFIG_HAVE_COPY_THREAD_TLS=y
>> -CONFIG_HAVE_C_RECORDMCOUNT=y
>> -CONFIG_HAVE_DEBUG_KMEMLEAK=y
>> -CONFIG_HAVE_DMA_CONTIGUOUS=y
>> -CONFIG_HAVE_DYNAMIC_FTRACE=y
>> -CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y
>> -CONFIG_HAVE_EBPF_JIT=y
>> -CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
>> -CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
>> -CONFIG_HAVE_FUNCTION_TRACER=y
>> -CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
>> -CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION=y
>> -CONFIG_HAVE_MOD_ARCH_SPECIFIC=y
>> -CONFIG_HAVE_NET_DSA=y
>> -CONFIG_HAVE_OPROFILE=y
>> -CONFIG_HAVE_OPTPROBES=y
>> -CONFIG_HAVE_PCI=y
>> -CONFIG_HAVE_PERF_EVENTS=y
>> -CONFIG_HAVE_PERF_REGS=y
>> -CONFIG_HAVE_PERF_USER_STACK_DUMP=y
>> -CONFIG_HAVE_PROC_CPU=y
>> -CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
>> -CONFIG_HAVE_RSEQ=y
>> -CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
>> -CONFIG_HAVE_UID16=y
>> -CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y
>>   CONFIG_HZ_FIXED=0
>>   CONFIG_HZ_PERIODIC=y
>>   CONFIG_INITRAMFS_SOURCE=""
>> @@ -144,6 +84,7 @@ CONFIG_IRQ_WORK=y
>>   CONFIG_LIBFDT=y
>>   CONFIG_LOCK_DEBUGGING_SUPPORT=y
>>   CONFIG_MEMFD_CREATE=y
>> +# CONFIG_MICROCHIP_PIT64B is not set
>>   CONFIG_MIGRATION=y
>>   CONFIG_MMC=y
>>   CONFIG_MMC_BLOCK=y
>>
> 




More information about the openwrt-devel mailing list