Skip to content

sunxi: Kconfig consolidation and cleanup

Ian Campbell u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sunxi: Kconfig: Consolidate SYS_CONFIG_NAME settingsboard/sunxi/Kconfig+4 -271 reply
1/3sunxi: Kconfig: Consolidate SYS_CONFIG_NAME settings+0 -00 replies
2/3sunxi: kconfig: Add top-level TARGET_SUNXIarch/arm/Kconfig board/sunxi/Kconfig configs/A10-OLinuXino-Lime_defconfig +21 more+43 -133 replies
2/3sunxi: kconfig: Add top-level TARGET_SUNXI+0 -01 reply
2/3sunxi: kconfig: Add top-level TARGET_SUNXI+0 -01 reply
2/3sunxi: kconfig: Add top-level TARGET_SUNXI+0 -02 replies
3/3sunxi: Kconfig: Make SPL_FEL a toplevel Kconfig optionboard/sunxi/Kconfig configs/Cubieboard2_FEL_defconfig configs/Cubietruck_FEL_defconfig+8 -21 reply
3/3sunxi: Kconfig: Make SPL_FEL a toplevel Kconfig option+0 -01 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchHans de Goede
1/3A-b
1/3A-b
2/3A-b
2/3A-b
2/3A-b
2/3A-b
3/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH for-next 0/3] sunxi: Kconfig consolidation and cleanup

A few simple patches which consolidate some Kconfig options and make SPL_FEL a first class .config member instead of putting it in CONFIG_SYS_EXTRA_OPTIONS.

This means it is possible to do a FEL build for any board with:
make <board>_config
echo CONFIG_SPL_FEL=y >> .config
echo CONFIG_SPL_FEL=y >> spl/.config
or better
make <board>_config
sed -i -e 's/\# CONFIG_SPL_FEL is not set/CONFIG_SPL_FEL=y/g' .config spl/.config
which is still one more step than I would like but still preferable IMHO to:

	sed -i -e 's/^CONFIG_SYS_EXTRA_OPTIONS="[^"]*/&,SPL_FEL/g' .config spl/.config

I've been using a little hack (below) to MAKEALL to help build test this.

There's still plenty of stuff in sunxi CONFIG_SYS_EXTRA_OPTIONS which could be moved out, but most of it is dependent on drivers/*/Kconfig switching first.

Probably the board and power controller selection could be moved out without any dependencies, although the board one in particular will be quite a big patch I think it would be worth it.

Ian.

My MAKEALL hack, surely not upstreamable ;-)

MAKEALL +5 -0
index 7c16319..3a8d1d0 100755
@@ -660,6 +660,11 @@ build_target() {
 	echo "Building ${target} board..."
 	${MAKE} -s ${target}_defconfig >/dev/null
 
+	if [ -n "$SUNXI_FORCE_FEL" ] ; then
+	    sed -i -e 's/\# CONFIG_SPL_FEL is not set/CONFIG_SPL_FEL=y/g' \
+		.config spl/.config
+	fi
+
 	${MAKE} ${JOBS} ${CHECK} all \
 		>${LOG_DIR}/$target.MAKELOG 2> ${LOG_DIR}/$target.ERR