Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make olddefconfig from 4.19.86 to 5.4.12 gentoo sources
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3082

PostPosted: Wed Jan 15, 2020 4:53 pm    Post subject: make olddefconfig from 4.19.86 to 5.4.12 gentoo sources Reply with quote

Upgrading gentoo-sources from 4.19.86 to 5.4.12 by help of make olddefconfig activates many new options. As I like to have everything that I don't need disabled it would urge me to check all those options one by one.
Is there an easier way to find out what is for newly supported hardware (then I don't need) and what is new features advisable to keep enabled?

Here is the list:
Code:
 /usr/src/linux-5.4.12-gentoo $ diff <(cat .config | sort) <(cat ../linux-4.19.86-gentoo/.config | sort) | awk '/^<.*(=|Linux)/ { $1=""; print }'
 CONFIG_64BIT_TIME=y
 CONFIG_AMD_NB=y
 CONFIG_ARCH_CLOCKSOURCE_INIT=y
 CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
 CONFIG_ARCH_HAS_PTE_DEVMAP=y
 CONFIG_ARCH_HAS_SET_DIRECT_MAP=y
 CONFIG_ARCH_STACKWALK=y
 CONFIG_ARCH_USE_MEMREMAP_PROT=y
 CONFIG_BLK_PM=y
 CONFIG_CC_CAN_LINK=y
 CONFIG_CC_DISABLE_WARN_MAYBE_UNINITIALIZED=y
 CONFIG_CC_HAS_ASM_INLINE=y
 CONFIG_CC_HAS_KASAN_GENERIC=y
 CONFIG_CC_HAS_WARN_MAYBE_UNINITIALIZED=y
 CONFIG_CPU_SUP_AMD=y
 CONFIG_CPU_SUP_HYGON=y
 CONFIG_CPU_SUP_ZHAOXIN=y
 CONFIG_CRYPTO_LIB_AES=y
 CONFIG_CRYPTO_LIB_ARC4=y
 CONFIG_CRYPTO_LIB_DES=y
 CONFIG_CRYPTO_LIB_SHA256=y
 CONFIG_DEBUG_MISC=y
 CONFIG_DRM_I915_FORCE_PROBE=""
 CONFIG_DRM_I915_SPIN_REQUEST=5
 CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
 CONFIG_DYNAMIC_EVENTS=y
 CONFIG_EFI_EARLYCON=y
 CONFIG_GCC_PLUGINS=y
 CONFIG_GENERIC_GETTIMEOFDAY=y
 CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y
 CONFIG_HAVE_ARCH_STACKLEAK=y
 CONFIG_HAVE_ASM_MODVERSIONS=y
 CONFIG_HAVE_EISA=y
 CONFIG_HAVE_FAST_GUP=y
 CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y
 CONFIG_HAVE_GENERIC_VDSO=y
 CONFIG_HAVE_MOVE_PMD=y
 CONFIG_HAVE_PCI=y
 CONFIG_INIT_STACK_NONE=y
 CONFIG_IO_URING=y
 CONFIG_KASAN_STACK=1
 CONFIG_LEDS_TRIGGER_AUDIO=y
 CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity"
 CONFIG_MMC_SDHCI_IO_ACCESSORS=y
 CONFIG_NVMEM_SYSFS=y
 CONFIG_OPTIMIZE_INLINING=y
 CONFIG_POWER_SUPPLY_HWMON=y
 CONFIG_PROC_PID_ARCH_STATUS=y
 CONFIG_SKB_EXTENSIONS=y
 CONFIG_SND_INTEL_NHLT=y
 CONFIG_UBSAN_ALIGNMENT=y
 CONFIG_UNIX_SCM=y
 CONFIG_USB_AUTOSUSPEND_DELAY=2
 CONFIG_X86_ACPI_CPUFREQ_CPB=y
 CONFIG_X86_MCE_AMD=y
 # end of Gentoo Linux
 # Linux/x86 5.4.12-gentoo Kernel Configuration
Back to top
View user's profile Send private message
freke
Guru
Guru


Joined: 23 Jan 2003
Posts: 566
Location: Somewhere in Denmark

PostPosted: Wed Jan 15, 2020 6:42 pm    Post subject: Reply with quote

I normally use 'make oldconfig' - so that it asks me for the new stuff.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3082

PostPosted: Thu Jan 16, 2020 1:46 pm    Post subject: Reply with quote

I have to admit I have used 'make oldconfig' only few times at the very beginning years ago with no clue about all the options.
And still for so many default-to-Y options it's not easy to say if I need it or not. At least with 'make oldconfig' they can all be checked individually. Is there a way to exclude the default-to-N options?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18349

PostPosted: Thu Jan 16, 2020 5:46 pm    Post subject: Reply with quote

Possibly this:
Quote:
"make allnoconfig" Create a ./.config file by setting symbol
values to 'n' as much as possible.


Check kernel Documentation/admin-guide/README.rst for more options.
_________________
The media sells it and you live the role.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum