From: Roland Hieber <rhi@pengutronix.de>
To: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH 2/9] v7a: barebox-common: add a common reference config for all barebox variants
Date: Wed, 5 Jun 2019 10:13:41 +0200 [thread overview]
Message-ID: <20190605081341.ahjjmptckrz2azvg@pengutronix.de> (raw)
In-Reply-To: <20190604204432.23750-2-rhi@pengutronix.de>
On Tue, Jun 04, 2019 at 10:44:25PM +0200, Roland Hieber wrote:
> This commit serves multiple purposes:
>
> * Make the barebox version and MD5 for all used barebox variants
> configurable with just one menu entry.
> * Have a common barebox configuration with a baseline feature set, which
> can be used by all barebox-* variants as a reference config with the
> config diff functionality introduced in PTXdist 2019.01.0.
> The common config is currently based on ARCH_BCM283X, which seems to
> generate the smallest config diff for all the existing device-specific
> barebox configs (which will be adapted in the next commits).
>
> The new barebox-common package only exists for the ability to call
> "ptxdist menuconfig" on it in order to change the common config. It
> isn't meant to build or install anything, so it doesn't need to be added
> to any PACKAGE-y variable, and the compile, install and targetinstall
> stages can be no-ops.
>
> Also make sure that the menu entry for the common configuration is
> listed before all other barebox variants by naming the kconfig file
> appriopriately.
>
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> ---
> configs/platform-v7a/barebox-am335x.config | 24 +-
This one looks unrelated. Will send v2.
- Roland
> configs/platform-v7a/barebox.config | 738 ++++++++++++++++++
> .../platforms/barebox-0-common.in | 33 +
> .../platform-v7a/rules/barebox-common.make | 78 ++
> 4 files changed, 862 insertions(+), 11 deletions(-)
> create mode 100644 configs/platform-v7a/barebox.config
> create mode 100644 configs/platform-v7a/platforms/barebox-0-common.in
> create mode 100644 configs/platform-v7a/rules/barebox-common.make
>
> diff --git a/configs/platform-v7a/barebox-am335x.config b/configs/platform-v7a/barebox-am335x.config
> index 9bc9c422e669..e10f377d1456 100644
> --- a/configs/platform-v7a/barebox-am335x.config
> +++ b/configs/platform-v7a/barebox-am335x.config
> @@ -171,7 +171,8 @@ CONFIG_BOOTM_FITIMAGE_PUBKEY="../fit/pubkey.dtsi"
> # CONFIG_BOOTM_FORCE_SIGNED_IMAGES is not set
> CONFIG_BLSPEC=y
> CONFIG_FLEXIBLE_BOOTARGS=y
> -# CONFIG_IMD is not set
> +CONFIG_IMD=y
> +# CONFIG_IMD_TARGET is not set
> # CONFIG_KERNEL_INSTALL_TARGET is not set
> CONFIG_CONSOLE_FULL=y
> # CONFIG_CONSOLE_SIMPLE is not set
> @@ -227,7 +228,7 @@ CONFIG_CMD_DRVINFO=y
> CONFIG_CMD_HELP=y
> CONFIG_LONGHELP=y
> CONFIG_CMD_IOMEM=y
> -# CONFIG_CMD_IMD is not set
> +CONFIG_CMD_IMD=y
> CONFIG_CMD_MEMINFO=y
> CONFIG_CMD_ARM_MMUINFO=y
> CONFIG_CMD_VERSION=y
> @@ -260,7 +261,7 @@ CONFIG_CMD_UMOUNT=y
> #
> CONFIG_CMD_NV=y
> CONFIG_CMD_EXPORT=y
> -# CONFIG_CMD_DEFAULTENV is not set
> +CONFIG_CMD_DEFAULTENV=y
> CONFIG_CMD_GLOBAL=y
> CONFIG_CMD_LOADENV=y
> CONFIG_CMD_PRINTENV=y
> @@ -275,7 +276,7 @@ CONFIG_CMD_BASENAME=y
> CONFIG_CMD_CAT=y
> CONFIG_CMD_CD=y
> CONFIG_CMD_CP=y
> -# CONFIG_CMD_CMP is not set
> +CONFIG_CMD_CMP=y
> CONFIG_CMD_DIGEST=y
> CONFIG_CMD_DIRNAME=y
> CONFIG_CMD_FILETYPE=y
> @@ -287,7 +288,7 @@ CONFIG_CMD_PWD=y
> CONFIG_CMD_READLINK=y
> CONFIG_CMD_RM=y
> CONFIG_CMD_RMDIR=y
> -# CONFIG_CMD_SHA1SUM is not set
> +CONFIG_CMD_SHA1SUM=y
> # CONFIG_CMD_SHA224SUM is not set
> # CONFIG_CMD_SHA256SUM is not set
> # CONFIG_CMD_SHA384SUM is not set
> @@ -326,7 +327,7 @@ CONFIG_CMD_ECHO_E=y
> CONFIG_CMD_EDIT=y
> # CONFIG_CMD_LOGIN is not set
> CONFIG_CMD_MENU=y
> -# CONFIG_CMD_MENU_MANAGEMENT is not set
> +CONFIG_CMD_MENU_MANAGEMENT=y
> CONFIG_CMD_MENUTREE=y
> CONFIG_CMD_READLINE=y
> CONFIG_CMD_TIMEOUT=y
> @@ -340,7 +341,7 @@ CONFIG_CMD_MD=y
> CONFIG_CMD_MEMCMP=y
> CONFIG_CMD_MEMCPY=y
> CONFIG_CMD_MEMSET=y
> -# CONFIG_CMD_MEMTEST is not set
> +CONFIG_CMD_MEMTEST=y
> CONFIG_CMD_MM=y
> CONFIG_CMD_MW=y
>
> @@ -353,8 +354,8 @@ CONFIG_CMD_GPIO=y
> CONFIG_CMD_I2C=y
> CONFIG_CMD_LED=y
> CONFIG_CMD_NAND=y
> -# CONFIG_CMD_NANDTEST is not set
> -# CONFIG_CMD_NAND_BITFLIP is not set
> +CONFIG_CMD_NANDTEST=y
> +CONFIG_CMD_NAND_BITFLIP=y
> # CONFIG_CMD_POWEROFF is not set
> CONFIG_CMD_SPI=y
> CONFIG_CMD_LED_TRIGGER=y
> @@ -368,7 +369,7 @@ CONFIG_CMD_WD_DEFAULT_TIMOUT=0
> # CONFIG_CMD_2048 is not set
> CONFIG_CMD_BAREBOX_UPDATE=y
> # CONFIG_CMD_FIRMWARELOAD is not set
> -# CONFIG_CMD_KEYSTORE is not set
> +CONFIG_CMD_KEYSTORE=y
> CONFIG_CMD_OF_DUMP=y
> CONFIG_CMD_OF_NODE=y
> CONFIG_CMD_OF_PROPERTY=y
> @@ -727,10 +728,11 @@ CONFIG_CRC32=y
> CONFIG_CRC16=y
> CONFIG_DIGEST=y
> CONFIG_MD5=y
> +CONFIG_SHA1=y
> CONFIG_DIGEST_HMAC=y
> # CONFIG_DIGEST_CRC32_GENERIC is not set
> CONFIG_DIGEST_MD5_GENERIC=y
> -# CONFIG_DIGEST_SHA1_GENERIC is not set
> +CONFIG_DIGEST_SHA1_GENERIC=y
> # CONFIG_DIGEST_SHA224_GENERIC is not set
> # CONFIG_DIGEST_SHA256_GENERIC is not set
> # CONFIG_DIGEST_SHA384_GENERIC is not set
> diff --git a/configs/platform-v7a/barebox.config b/configs/platform-v7a/barebox.config
> new file mode 100644
> index 000000000000..2fce2116be52
> --- /dev/null
> +++ b/configs/platform-v7a/barebox.config
> @@ -0,0 +1,738 @@
> +#
> +# Automatically generated file; DO NOT EDIT.
> +# Barebox/arm 2019.03.0 Configuration
> +#
> +CONFIG_ARM=y
> +CONFIG_ARM_LINUX=y
> +CONFIG_TEXT_BASE=0x0
> +
> +#
> +# System Type
> +#
> +# CONFIG_ARCH_AT91 is not set
> +CONFIG_ARCH_BCM283X=y
> +# CONFIG_ARCH_CLPS711X is not set
> +# CONFIG_ARCH_DAVINCI is not set
> +# CONFIG_ARCH_DIGIC is not set
> +# CONFIG_ARCH_EP93XX is not set
> +# CONFIG_ARCH_HIGHBANK is not set
> +# CONFIG_ARCH_IMX is not set
> +# CONFIG_ARCH_MVEBU is not set
> +# CONFIG_ARCH_MXS is not set
> +# CONFIG_ARCH_NETX is not set
> +# CONFIG_ARCH_NOMADIK is not set
> +# CONFIG_ARCH_OMAP is not set
> +# CONFIG_ARCH_PXA is not set
> +# CONFIG_ARCH_ROCKCHIP is not set
> +# CONFIG_ARCH_SOCFPGA is not set
> +# CONFIG_ARCH_S3C24xx is not set
> +# CONFIG_ARCH_S5PCxx is not set
> +# CONFIG_ARCH_S3C64xx is not set
> +# CONFIG_ARCH_VERSATILE is not set
> +# CONFIG_ARCH_VEXPRESS is not set
> +# CONFIG_ARCH_TEGRA is not set
> +# CONFIG_ARCH_UEMD is not set
> +# CONFIG_ARCH_ZYNQ is not set
> +# CONFIG_ARCH_ZYNQMP is not set
> +# CONFIG_ARCH_QEMU is not set
> +
> +#
> +# Processor Type
> +#
> +CONFIG_CPU_32=y
> +CONFIG_CPU_V7=y
> +CONFIG_CPU_32v7=y
> +
> +#
> +# processor features
> +#
> +# CONFIG_BOOT_ENDIANNESS_SWITCH is not set
> +CONFIG_ARCH_TEXT_BASE=0x0
> +CONFIG_MACH_RPI_COMMON=y
> +
> +#
> +# select Broadcom BCM283X boards to be built
> +#
> +# CONFIG_MACH_RPI is not set
> +# CONFIG_MACH_RPI2 is not set
> +CONFIG_MACH_RPI3=y
> +CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
> +CONFIG_AEABI=y
> +# CONFIG_THUMB2_BAREBOX is not set
> +# CONFIG_ARM_BOARD_APPEND_ATAG is not set
> +
> +#
> +# ARM specific settings
> +#
> +CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
> +CONFIG_ARM_EXCEPTIONS=y
> +CONFIG_ARM_UNWIND=y
> +# CONFIG_ARM_SEMIHOSTING is not set
> +CONFIG_ARM_SMCCC=y
> +CONFIG_ARM_SECURE_MONITOR=y
> +# CONFIG_ARM_PSCI is not set
> +CONFIG_GREGORIAN_CALENDER=y
> +CONFIG_HAS_KALLSYMS=y
> +CONFIG_HAS_MODULES=y
> +CONFIG_HAS_CACHE=y
> +CONFIG_HAS_DMA=y
> +CONFIG_GENERIC_GPIO=y
> +CONFIG_BLOCK=y
> +CONFIG_BLOCK_WRITE=y
> +CONFIG_FILETYPE=y
> +CONFIG_BINFMT=y
> +CONFIG_UIMAGE=y
> +CONFIG_LOGBUF=y
> +CONFIG_STDDEV=y
> +CONFIG_BAREBOX_UPDATE=y
> +CONFIG_MENUTREE=y
> +CONFIG_FILE_LIST=y
> +CONFIG_USBGADGET_START=y
> +CONFIG_BOOT=y
> +
> +#
> +# General Settings
> +#
> +CONFIG_LOCALVERSION=""
> +CONFIG_LOCALVERSION_AUTO=y
> +CONFIG_BANNER=y
> +CONFIG_MEMINFO=y
> +CONFIG_ENVIRONMENT_VARIABLES=y
> +CONFIG_GLOBALVAR=y
> +CONFIG_NVVAR=y
> +
> +#
> +# memory layout
> +#
> +CONFIG_HAVE_PBL_IMAGE=y
> +CONFIG_HAVE_PBL_MULTI_IMAGES=y
> +CONFIG_HAVE_IMAGE_COMPRESSION=y
> +CONFIG_PBL_IMAGE=y
> +CONFIG_PBL_MULTI_IMAGES=y
> +CONFIG_PBL_RELOCATABLE=y
> +CONFIG_IMAGE_COMPRESSION=y
> +# CONFIG_IMAGE_COMPRESSION_LZ4 is not set
> +CONFIG_IMAGE_COMPRESSION_LZO=y
> +# CONFIG_IMAGE_COMPRESSION_GZIP is not set
> +# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
> +# CONFIG_IMAGE_COMPRESSION_NONE is not set
> +CONFIG_MMU=y
> +CONFIG_MMU_EARLY=y
> +CONFIG_BAREBOX_MAX_PBL_SIZE=0xffffffff
> +CONFIG_BAREBOX_MAX_BARE_INIT_SIZE=0xffffffff
> +CONFIG_BAREBOX_MAX_PBLX_SIZE=0xffffffff
> +CONFIG_STACK_SIZE=0x8000
> +CONFIG_MALLOC_SIZE=0x0
> +# CONFIG_EXPERIMENTAL is not set
> +# CONFIG_MALLOC_DLMALLOC is not set
> +CONFIG_MALLOC_TLSF=y
> +CONFIG_KALLSYMS=y
> +CONFIG_RELOCATABLE=y
> +# CONFIG_PANIC_HANG is not set
> +CONFIG_PROMPT="barebox>"
> +CONFIG_BAUDRATE=115200
> +CONFIG_CBSIZE=1024
> +CONFIG_SHELL_HUSH=y
> +# CONFIG_SHELL_SIMPLE is not set
> +# CONFIG_SHELL_NONE is not set
> +CONFIG_GLOB=y
> +CONFIG_GLOB_SORT=y
> +CONFIG_PROMPT_HUSH_PS2="> "
> +CONFIG_HUSH_FANCY_PROMPT=y
> +CONFIG_CMDLINE_EDITING=y
> +CONFIG_AUTO_COMPLETE=y
> +CONFIG_MENU=y
> +# CONFIG_PASSWORD is not set
> +CONFIG_DYNAMIC_CRC_TABLE=y
> +CONFIG_ERRNO_MESSAGES=y
> +CONFIG_TIMESTAMP=y
> +CONFIG_BOOTM=y
> +CONFIG_BOOTM_SHOW_TYPE=y
> +CONFIG_BOOTM_VERBOSE=y
> +# CONFIG_BOOTM_INITRD is not set
> +CONFIG_BOOTM_OFTREE=y
> +# CONFIG_BOOTM_OFTREE_UIMAGE is not set
> +# CONFIG_BOOTM_AIMAGE is not set
> +# CONFIG_BOOTM_FITIMAGE is not set
> +CONFIG_BLSPEC=y
> +CONFIG_FLEXIBLE_BOOTARGS=y
> +CONFIG_IMD=y
> +# CONFIG_IMD_TARGET is not set
> +# CONFIG_KERNEL_INSTALL_TARGET is not set
> +CONFIG_CONSOLE_FULL=y
> +# CONFIG_CONSOLE_SIMPLE is not set
> +# CONFIG_CONSOLE_NONE is not set
> +CONFIG_CONSOLE_ACTIVATE_FIRST=y
> +# CONFIG_CONSOLE_ACTIVATE_ALL is not set
> +# CONFIG_CONSOLE_ACTIVATE_NONE is not set
> +CONFIG_CONSOLE_ALLOW_COLOR=y
> +# CONFIG_PBL_CONSOLE is not set
> +# CONFIG_CONSOLE_RATP is not set
> +CONFIG_PARTITION=y
> +CONFIG_PARTITION_DISK=y
> +CONFIG_PARTITION_DISK_DOS=y
> +# CONFIG_PARTITION_DISK_EFI is not set
> +CONFIG_ENV_HANDLING=y
> +CONFIG_DEFAULT_ENVIRONMENT=y
> +# CONFIG_DEFAULT_COMPRESSION_GZIP is not set
> +# CONFIG_DEFAULT_COMPRESSION_BZIP2 is not set
> +# CONFIG_DEFAULT_COMPRESSION_LZO is not set
> +# CONFIG_DEFAULT_COMPRESSION_XZ is not set
> +CONFIG_DEFAULT_COMPRESSION_NONE=y
> +CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
> +CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU=y
> +CONFIG_DEFAULT_ENVIRONMENT_PATH=".ptxdist-defaultenv"
> +# CONFIG_BAREBOXENV_TARGET is not set
> +# CONFIG_BAREBOXCRC32_TARGET is not set
> +CONFIG_POLLER=y
> +CONFIG_STATE=y
> +# CONFIG_STATE_CRYPTO is not set
> +# CONFIG_STATE_BACKWARD_COMPATIBLE is not set
> +# CONFIG_BOOTCHOOSER is not set
> +CONFIG_RESET_SOURCE=y
> +
> +#
> +# Debugging
> +#
> +CONFIG_COMPILE_LOGLEVEL=7
> +CONFIG_DEFAULT_LOGLEVEL=6
> +# CONFIG_DEBUG_INFO is not set
> +# CONFIG_DEBUG_LL is not set
> +# CONFIG_DEBUG_INITCALLS is not set
> +CONFIG_HAS_DEBUG_LL=y
> +CONFIG_COMMAND_SUPPORT=y
> +CONFIG_COMPILE_HASH=y
> +
> +#
> +# Commands
> +#
> +
> +#
> +# Information
> +#
> +CONFIG_CMD_ARM_CPUINFO=y
> +CONFIG_CMD_DEVINFO=y
> +CONFIG_CMD_DMESG=y
> +CONFIG_CMD_DRVINFO=y
> +CONFIG_CMD_HELP=y
> +CONFIG_LONGHELP=y
> +CONFIG_CMD_IOMEM=y
> +CONFIG_CMD_IMD=y
> +CONFIG_CMD_MEMINFO=y
> +CONFIG_CMD_ARM_MMUINFO=y
> +CONFIG_CMD_REGULATOR=y
> +CONFIG_CMD_VERSION=y
> +# CONFIG_CMD_MMC_EXTCSD is not set
> +
> +#
> +# Boot
> +#
> +CONFIG_CMD_BOOT=y
> +CONFIG_CMD_BOOTM=y
> +# CONFIG_CMD_BOOTU is not set
> +CONFIG_CMD_BOOTZ=y
> +CONFIG_CMD_GO=y
> +# CONFIG_CMD_LOADB is not set
> +# CONFIG_CMD_LOADS is not set
> +# CONFIG_CMD_LOADY is not set
> +CONFIG_CMD_RESET=y
> +CONFIG_CMD_UIMAGE=y
> +
> +#
> +# Partition
> +#
> +CONFIG_CMD_PARTITION=y
> +CONFIG_CMD_AUTOMOUNT=y
> +CONFIG_CMD_MOUNT=y
> +CONFIG_CMD_UMOUNT=y
> +
> +#
> +# Environment
> +#
> +CONFIG_CMD_NV=y
> +CONFIG_CMD_EXPORT=y
> +CONFIG_CMD_DEFAULTENV=y
> +CONFIG_CMD_GLOBAL=y
> +CONFIG_CMD_LOADENV=y
> +CONFIG_CMD_PRINTENV=y
> +CONFIG_CMD_MAGICVAR=y
> +CONFIG_CMD_MAGICVAR_HELP=y
> +CONFIG_CMD_SAVEENV=y
> +
> +#
> +# File
> +#
> +CONFIG_CMD_BASENAME=y
> +CONFIG_CMD_CAT=y
> +CONFIG_CMD_CD=y
> +CONFIG_CMD_CP=y
> +CONFIG_CMD_CMP=y
> +CONFIG_CMD_DIGEST=y
> +CONFIG_CMD_DIRNAME=y
> +CONFIG_CMD_FILETYPE=y
> +CONFIG_CMD_LN=y
> +CONFIG_CMD_LS=y
> +CONFIG_CMD_MD5SUM=y
> +CONFIG_CMD_MKDIR=y
> +CONFIG_CMD_PWD=y
> +CONFIG_CMD_READLINK=y
> +CONFIG_CMD_RM=y
> +CONFIG_CMD_RMDIR=y
> +CONFIG_CMD_SHA1SUM=y
> +# CONFIG_CMD_SHA224SUM is not set
> +# CONFIG_CMD_SHA256SUM is not set
> +# CONFIG_CMD_SHA384SUM is not set
> +# CONFIG_CMD_SHA512SUM is not set
> +CONFIG_CMD_UNCOMPRESS=y
> +
> +#
> +# Shell scripting
> +#
> +CONFIG_CMD_FALSE=y
> +CONFIG_CMD_GETOPT=y
> +CONFIG_CMD_LET=y
> +CONFIG_CMD_MSLEEP=y
> +CONFIG_CMD_READF=y
> +CONFIG_CMD_SLEEP=y
> +CONFIG_CMD_TEST=y
> +CONFIG_CMD_TRUE=y
> +
> +#
> +# Network
> +#
> +CONFIG_CMD_DHCP=y
> +CONFIG_CMD_HOST=y
> +CONFIG_NET_CMD_IFUP=y
> +# CONFIG_CMD_MIITOOL is not set
> +CONFIG_CMD_PING=y
> +CONFIG_CMD_TFTP=y
> +CONFIG_CMD_IP_ROUTE_GET=y
> +
> +#
> +# Console and Framebuffer interaction
> +#
> +CONFIG_CMD_CLEAR=y
> +CONFIG_CMD_ECHO=y
> +CONFIG_CMD_ECHO_E=y
> +CONFIG_CMD_EDIT=y
> +# CONFIG_CMD_LOGIN is not set
> +CONFIG_CMD_MENU=y
> +# CONFIG_CMD_MENU_MANAGEMENT is not set
> +CONFIG_CMD_MENUTREE=y
> +CONFIG_CMD_READLINE=y
> +CONFIG_CMD_TIMEOUT=y
> +
> +#
> +# Memory
> +#
> +CONFIG_CMD_CRC=y
> +CONFIG_CMD_CRC_CMP=y
> +CONFIG_CMD_MD=y
> +CONFIG_CMD_MEMCMP=y
> +CONFIG_CMD_MEMCPY=y
> +CONFIG_CMD_MEMSET=y
> +CONFIG_CMD_MEMTEST=y
> +CONFIG_CMD_MM=y
> +CONFIG_CMD_MW=y
> +
> +#
> +# Hardware manipulation
> +#
> +CONFIG_CMD_CLK=y
> +CONFIG_CMD_DETECT=y
> +CONFIG_CMD_FLASH=y
> +CONFIG_CMD_GPIO=y
> +CONFIG_CMD_I2C=y
> +CONFIG_CMD_LED=y
> +# CONFIG_CMD_POWEROFF is not set
> +CONFIG_CMD_SPI=y
> +CONFIG_CMD_LED_TRIGGER=y
> +CONFIG_CMD_USB=y
> +CONFIG_CMD_USBGADGET=y
> +CONFIG_CMD_WD=y
> +CONFIG_CMD_WD_DEFAULT_TIMOUT=0
> +
> +#
> +# Miscellaneous
> +#
> +# CONFIG_CMD_2048 is not set
> +CONFIG_CMD_BAREBOX_UPDATE=y
> +# CONFIG_CMD_FIRMWARELOAD is not set
> +CONFIG_CMD_OF_DUMP=y
> +CONFIG_CMD_OF_NODE=y
> +CONFIG_CMD_OF_PROPERTY=y
> +# CONFIG_CMD_OF_DISPLAY_TIMINGS is not set
> +# CONFIG_CMD_OF_FIXUP_STATUS is not set
> +CONFIG_CMD_OFTREE=y
> +CONFIG_CMD_TIME=y
> +CONFIG_CMD_STATE=y
> +# CONFIG_CMD_DHRYSTONE is not set
> +# CONFIG_CMD_SPD_DECODE is not set
> +# CONFIG_CMD_SEED is not set
> +CONFIG_NET=y
> +CONFIG_NET_NFS=y
> +# CONFIG_NET_NETCONSOLE is not set
> +CONFIG_NET_RESOLV=y
> +CONFIG_NET_IFUP=y
> +CONFIG_NET_DHCP=y
> +# CONFIG_NET_SNTP is not set
> +
> +#
> +# Drivers
> +#
> +CONFIG_OFTREE=y
> +CONFIG_OFTREE_MEM_GENERIC=y
> +CONFIG_DTC=y
> +CONFIG_OFDEVICE=y
> +CONFIG_OF_NET=y
> +CONFIG_OF_GPIO=y
> +CONFIG_OF_BAREBOX_DRIVERS=y
> +# CONFIG_OF_BAREBOX_ENV_IN_FS is not set
> +# CONFIG_AIODEV is not set
> +CONFIG_ARM_AMBA=y
> +
> +#
> +# serial drivers
> +#
> +# CONFIG_SERIAL_DEV_BUS is not set
> +# CONFIG_DRIVER_SERIAL_ARM_DCC is not set
> +# CONFIG_SERIAL_AMBA_PL011 is not set
> +# CONFIG_DRIVER_SERIAL_NS16550 is not set
> +# CONFIG_DRIVER_SERIAL_CADENCE is not set
> +CONFIG_PHYLIB=y
> +
> +#
> +# Network drivers
> +#
> +# CONFIG_DRIVER_NET_ARC_EMAC is not set
> +# CONFIG_DRIVER_NET_CALXEDA_XGMAC is not set
> +# CONFIG_DRIVER_NET_DESIGNWARE is not set
> +# CONFIG_DRIVER_NET_ENC28J60 is not set
> +# CONFIG_DRIVER_NET_KS8851_MLL is not set
> +# CONFIG_DRIVER_NET_MICREL is not set
> +# CONFIG_DRIVER_NET_SMC911X is not set
> +# CONFIG_DRIVER_NET_SMC91111 is not set
> +
> +#
> +# phylib
> +#
> +
> +#
> +# MII PHY device drivers
> +#
> +# CONFIG_AR8327N_PHY is not set
> +# CONFIG_AT803X_PHY is not set
> +# CONFIG_DAVICOM_PHY is not set
> +# CONFIG_DP83867_PHY is not set
> +# CONFIG_LXT_PHY is not set
> +# CONFIG_MARVELL_PHY is not set
> +# CONFIG_MICREL_PHY is not set
> +# CONFIG_NATIONAL_PHY is not set
> +# CONFIG_SMSC_PHY is not set
> +# CONFIG_NET_DSA_MV88E6XXX is not set
> +
> +#
> +# MII bus device drivers
> +#
> +# CONFIG_MDIO_BITBANG is not set
> +# CONFIG_MDIO_BUS_MUX_GPIO is not set
> +CONFIG_NET_USB=y
> +CONFIG_NET_USB_ASIX=y
> +CONFIG_NET_USB_SMSC95XX=y
> +
> +#
> +# SPI drivers
> +#
> +CONFIG_SPI=y
> +CONFIG_DRIVER_SPI_GPIO=y
> +CONFIG_I2C=y
> +CONFIG_I2C_ALGOBIT=y
> +
> +#
> +# I2C Hardware Bus support
> +#
> +CONFIG_I2C_GPIO=y
> +# CONFIG_I2C_DESIGNWARE is not set
> +# CONFIG_I2C_MV64XXX is not set
> +# CONFIG_I2C_MUX is not set
> +CONFIG_MTD=y
> +CONFIG_MTD_WRITE=y
> +CONFIG_MTD_OOB_DEVICE=y
> +# CONFIG_MTD_RAW_DEVICE is not set
> +# CONFIG_MTD_CONCAT is not set
> +
> +#
> +# MTD debug options
> +#
> +# CONFIG_MTD_PEB_DEBUG is not set
> +
> +#
> +# Self contained MTD devices
> +#
> +# CONFIG_MTD_DATAFLASH is not set
> +# CONFIG_MTD_M25P80 is not set
> +# CONFIG_MTD_DOCG3 is not set
> +# CONFIG_MTD_MTDRAM is not set
> +# CONFIG_DRIVER_CFI is not set
> +# CONFIG_NAND is not set
> +# CONFIG_MTD_SPI_NOR is not set
> +# CONFIG_MTD_UBI is not set
> +CONFIG_DISK=y
> +CONFIG_DISK_WRITE=y
> +
> +#
> +# drive types
> +#
> +# CONFIG_DISK_ATA is not set
> +# CONFIG_DISK_AHCI is not set
> +
> +#
> +# interface types
> +#
> +# CONFIG_DISK_INTF_PLATFORM_IDE is not set
> +CONFIG_USB=y
> +CONFIG_USB_HOST=y
> +CONFIG_USB_EHCI=y
> +# CONFIG_USB_XHCI is not set
> +# CONFIG_USB_ULPI is not set
> +CONFIG_USB_STORAGE=y
> +CONFIG_USB_GADGET=y
> +CONFIG_USB_GADGET_AUTOSTART=y
> +
> +#
> +# USB Gadget drivers
> +#
> +# CONFIG_USB_GADGET_DFU is not set
> +CONFIG_USB_GADGET_SERIAL=y
> +# CONFIG_USB_GADGET_FASTBOOT is not set
> +# CONFIG_USB_GADGET_FASTBOOT_SPARSE is not set
> +# CONFIG_USB_MUSB is not set
> +# CONFIG_VIDEO is not set
> +CONFIG_MCI=y
> +
> +#
> +# --- Feature list ---
> +#
> +CONFIG_MCI_STARTUP=y
> +CONFIG_MCI_INFO=y
> +CONFIG_MCI_WRITE=y
> +# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
> +
> +#
> +# --- MCI host drivers ---
> +#
> +# CONFIG_MCI_DW is not set
> +# CONFIG_MCI_BCM283X is not set
> +CONFIG_MCI_MMCI=y
> +# CONFIG_MCI_SPI is not set
> +CONFIG_HAVE_CLK=y
> +CONFIG_CLKDEV_LOOKUP=y
> +CONFIG_COMMON_CLK=y
> +
> +#
> +# Clocksource
> +#
> +CONFIG_CLOCKSOURCE_BCM283X=y
> +CONFIG_CLOCKSOURCE_DUMMY_RATE=1000
> +# CONFIG_CLOCKSOURCE_DW_APB_TIMER is not set
> +
> +#
> +# MFD
> +#
> +# CONFIG_MFD_ACT8846 is not set
> +# CONFIG_MFD_DA9053 is not set
> +# CONFIG_MFD_DA9063 is not set
> +# CONFIG_MFD_LP3972 is not set
> +# CONFIG_MFD_MC13XXX is not set
> +# CONFIG_MFD_MC34704 is not set
> +# CONFIG_MFD_MC9SDZ60 is not set
> +# CONFIG_MFD_STMPE is not set
> +# CONFIG_MFD_SYSCON is not set
> +# CONFIG_MFD_TWL4030 is not set
> +# CONFIG_MFD_TWL6030 is not set
> +
> +#
> +# Misc devices
> +#
> +# CONFIG_JTAG is not set
> +# CONFIG_SRAM is not set
> +CONFIG_STATE_DRV=y
> +CONFIG_DEV_MEM=y
> +CONFIG_LED=y
> +CONFIG_LED_GPIO=y
> +CONFIG_LED_GPIO_OF=y
> +# CONFIG_LED_GPIO_RGB is not set
> +# CONFIG_LED_GPIO_BICOLOR is not set
> +CONFIG_LED_TRIGGERS=y
> +# CONFIG_LED_PCA955X is not set
> +
> +#
> +# EEPROM support
> +#
> +# CONFIG_EEPROM_AT25 is not set
> +# CONFIG_EEPROM_AT24 is not set
> +
> +#
> +# Input device support
> +#
> +# CONFIG_KEYBOARD_GPIO is not set
> +# CONFIG_KEYBOARD_QT1070 is not set
> +# CONFIG_KEYBOARD_USB is not set
> +CONFIG_WATCHDOG=y
> +# CONFIG_WATCHDOG_POLLER is not set
> +# CONFIG_WATCHDOG_DW is not set
> +# CONFIG_WATCHDOG_BCM2835 is not set
> +# CONFIG_PWM is not set
> +CONFIG_HWRNG=y
> +
> +#
> +# DMA support
> +#
> +CONFIG_GPIOLIB=y
> +
> +#
> +# GPIO
> +#
> +# CONFIG_GPIO_74164 is not set
> +# CONFIG_GPIO_BCM283X is not set
> +# CONFIG_GPIO_GENERIC_PLATFORM is not set
> +# CONFIG_GPIO_PCA953X is not set
> +# CONFIG_GPIO_PL061 is not set
> +# CONFIG_GPIO_DESIGNWARE is not set
> +# CONFIG_GPIO_SX150X is not set
> +# CONFIG_W1 is not set
> +CONFIG_PINCTRL=y
> +# CONFIG_PINCTRL_SINGLE is not set
> +# CONFIG_NVMEM is not set
> +
> +#
> +# Bus devices
> +#
> +CONFIG_REGULATOR=y
> +# CONFIG_REGULATOR_FIXED is not set
> +CONFIG_REGULATOR_BCM283X=y
> +# CONFIG_RESET_CONTROLLER is not set
> +# CONFIG_RTC_CLASS is not set
> +
> +#
> +# Firmware Drivers
> +#
> +# CONFIG_FIRMWARE_ALTERA_SERIAL is not set
> +# CONFIG_GENERIC_PHY is not set
> +# CONFIG_CRYPTO_HW is not set
> +
> +#
> +# Memory controller drivers
> +#
> +
> +#
> +# i.MX SoC drivers
> +#
> +
> +#
> +# Filesystem support
> +#
> +CONFIG_FS=y
> +CONFIG_FS_LEGACY=y
> +
> +#
> +# Some selected filesystems still use the legacy FS API.
> +#
> +
> +#
> +# Consider updating them.
> +#
> +CONFIG_FS_AUTOMOUNT=y
> +# CONFIG_FS_CRAMFS is not set
> +CONFIG_FS_EXT4=y
> +CONFIG_FS_RAMFS=y
> +CONFIG_FS_DEVFS=y
> +CONFIG_FS_TFTP=y
> +CONFIG_FS_NFS=y
> +CONFIG_FS_FAT=y
> +CONFIG_FS_FAT_WRITE=y
> +CONFIG_FS_FAT_LFN=y
> +# CONFIG_FS_BPKFS is not set
> +# CONFIG_FS_UIMAGEFS is not set
> +# CONFIG_FS_PSTORE is not set
> +# CONFIG_FS_SQUASHFS is not set
> +
> +#
> +# ZLIB support disabled
> +#
> +
> +#
> +# LZ4 support disabled
> +#
> +
> +#
> +# LZO support disabled
> +#
> +
> +#
> +# XZ support disabled
> +#
> +
> +#
> +# ZSTD support disabled
> +#
> +
> +#
> +# Library routines
> +#
> +CONFIG_PARAMETER=y
> +CONFIG_UNCOMPRESS=y
> +CONFIG_ZLIB=y
> +CONFIG_BZLIB=y
> +# CONFIG_LZ4_DECOMPRESS is not set
> +# CONFIG_ZSTD_DECOMPRESS is not set
> +CONFIG_XZ_DECOMPRESS=y
> +CONFIG_XZ_DEC_X86=y
> +CONFIG_XZ_DEC_POWERPC=y
> +CONFIG_XZ_DEC_IA64=y
> +CONFIG_XZ_DEC_ARM=y
> +CONFIG_XZ_DEC_ARMTHUMB=y
> +CONFIG_XZ_DEC_SPARC=y
> +CONFIG_PROCESS_ESCAPE_SEQUENCE=y
> +CONFIG_LZO_DECOMPRESS=y
> +CONFIG_FNMATCH=y
> +CONFIG_QSORT=y
> +# CONFIG_RATP is not set
> +# CONFIG_ALLOW_PRNG_FALLBACK is not set
> +# CONFIG_CRC_CCITT is not set
> +# CONFIG_CRC8 is not set
> +
> +#
> +# Library gui routines
> +#
> +# CONFIG_BAREBOX_LOGO is not set
> +
> +#
> +# Crypto support
> +#
> +CONFIG_CRC32=y
> +CONFIG_CRC16=y
> +CONFIG_DIGEST=y
> +CONFIG_MD5=y
> +CONFIG_SHA1=y
> +# CONFIG_DIGEST_CRC32_GENERIC is not set
> +CONFIG_DIGEST_MD5_GENERIC=y
> +CONFIG_DIGEST_SHA1_GENERIC=y
> +# CONFIG_DIGEST_SHA224_GENERIC is not set
> +# CONFIG_DIGEST_SHA256_GENERIC is not set
> +# CONFIG_DIGEST_SHA384_GENERIC is not set
> +# CONFIG_DIGEST_SHA512_GENERIC is not set
> +# CONFIG_DIGEST_HMAC_GENERIC is not set
> +# CONFIG_DIGEST_SHA1_ARM is not set
> +# CONFIG_DIGEST_SHA256_ARM is not set
> +# CONFIG_CRYPTO_KEYSTORE is not set
> +
> +#
> +# Firmware files
> +#
> +CONFIG_EXTRA_FIRMWARE_DIR="firmware"
> +
> +#
> +# Host Tools
> +#
> +# CONFIG_COMPILE_HOST_TOOLS is not set
> diff --git a/configs/platform-v7a/platforms/barebox-0-common.in b/configs/platform-v7a/platforms/barebox-0-common.in
> new file mode 100644
> index 000000000000..ad4ee2cf1eb4
> --- /dev/null
> +++ b/configs/platform-v7a/platforms/barebox-0-common.in
> @@ -0,0 +1,33 @@
> +## SECTION=bootloader
> +
> +config BAREBOX_COMMON_ARCH_STRING
> + string
> + default "arm"
> +
> +menuconfig BAREBOX_COMMON
> + prompt "common barebox options "
> + bool
> + select HOST_LZOP if BAREBOX_COMMON_NEEDS_HOST_LZOP
> + help
> + A metapackage serving a reference config for all other barebox
> + variants in the v7a platform. It doesn't install anything.
> +
> +if BAREBOX_COMMON
> +
> +config BAREBOX_COMMON_VERSION
> + prompt "barebox version"
> + string
> + default "2016.08.0"
> +
> +config BAREBOX_COMMON_MD5
> + prompt "barebox source md5sum"
> + string
> +
> +config BAREBOX_COMMON_NEEDS_HOST_LZOP
> + prompt "barebox needs lzop"
> + bool
> + help
> + The barebox binaries can be compressed. Select this if lzop
> + is used in order to compile lzop for your development host.
> +
> +endif
> diff --git a/configs/platform-v7a/rules/barebox-common.make b/configs/platform-v7a/rules/barebox-common.make
> new file mode 100644
> index 000000000000..015f3a09dbbd
> --- /dev/null
> +++ b/configs/platform-v7a/rules/barebox-common.make
> @@ -0,0 +1,78 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2019 Roland Hieber <rhi@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# Paths and names
> +#
> +BAREBOX_COMMON_VERSION := $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_VERSION))
> +BAREBOX_COMMON_MD5 := $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_MD5))
> +BAREBOX_COMMON := barebox-$(BAREBOX_COMMON_VERSION)
> +BAREBOX_COMMON_SUFFIX := tar.bz2
> +BAREBOX_COMMON_URL := $(call barebox-url, BAREBOX_COMMON)
> +BAREBOX_COMMON_SOURCE := $(SRCDIR)/$(BAREBOX_COMMON).$(BAREBOX_COMMON_SUFFIX)
> +BAREBOX_COMMON_DIR := $(BUILDDIR)/$(BAREBOX_COMMON)
> +BAREBOX_COMMON_LICENSE := GPL-2.0-only
> +BAREBOX_COMMON_DEVPKG := NO
> +
> +BAREBOX_COMMON_CONFIG := $(call ptx/in-platformconfigdir, barebox.config)
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +# use host pkg-config for host tools
> +BAREBOX_COMMON_PATH := PATH=$(HOST_PATH)
> +
> +BAREBOX_COMMON_CONF_OPT := $(call barebox-opts, BAREBOX_COMMON)
> +BAREBOX_COMMON_MAKE_OPT := $(BAREBOX_COMMON_CONF_OPT)
> +
> +BAREBOX_COMMON_TAGS_OPT := TAGS tags cscope
> +
> +$(STATEDIR)/barebox-common.prepare:
> + @$(call targetinfo)
> + @$(call world/prepare, BAREBOX_COMMON)
> + @$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Compile
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/barebox-common.compile:
> + @$(call targetinfo)
> + @echo "Note: the 'barebox-common' package does not compile anything." >&2
> + @echo "You probably wanted one of the other barebox-* packages instead." >&2
> + @$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/barebox-common.install:
> + @$(call targetinfo)
> + @echo "Note: the 'barebox-common' package does not install anything." >&2
> + @echo "You probably wanted one of the other barebox-* packages instead." >&2
> + @$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/barebox-common.targetinstall:
> + @$(call targetinfo)
> + @echo "Note: the 'barebox-common' package does not targetinstall anything." >&2
> + @echo "You probably wanted one of the other barebox-* packages instead." >&2
> + @$(call touch)
> +
> +# ----------------------------------------------------------------------------
> +# oldconfig / menuconfig
> +# ----------------------------------------------------------------------------
> +
> +barebox-common_oldconfig barebox-common_menuconfig barebox-common_nconfig: $(STATEDIR)/barebox-common.extract
> + @$(call world/kconfig, BAREBOX_COMMON, $(subst barebox-common_,,$@))
> +
> +# vim: syntax=make
> --
> 2.20.1
>
>
> _______________________________________________
> DistroKit mailing list
> DistroKit@pengutronix.de
--
Roland Hieber | r.hieber@pengutronix.de |
Pengutronix e.K. | https://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
next prev parent reply other threads:[~2019-06-05 8:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 20:44 [DistroKit] [PATCH 1/9] v7a: remove unused barebox_mlo menu entry Roland Hieber
2019-06-04 20:44 ` [DistroKit] [PATCH 2/9] v7a: barebox-common: add a common reference config for all barebox variants Roland Hieber
2019-06-05 8:13 ` Roland Hieber [this message]
2019-06-04 20:44 ` [DistroKit] [PATCH 3/9] v7a: platformconfig: configure barebox-common Roland Hieber
2019-06-04 20:44 ` [DistroKit] [PATCH 4/9] v7a: bareboxes: use shared settings from the barebox-common package Roland Hieber
2019-06-04 20:44 ` [DistroKit] [PATCH 5/9] v7a: bareboxes: use config diffs with the common reference config Roland Hieber
2019-06-04 20:44 ` [DistroKit] [PATCH 6/9] v7a: barebox-am335x: slim down config diff Roland Hieber
2019-06-04 20:44 ` [DistroKit] [PATCH 7/9] v7a: barebox-mx6: " Roland Hieber
2019-06-04 20:44 ` [DistroKit] [PATCH 8/9] v7a: barebox-rpi2: " Roland Hieber
2019-06-04 20:44 ` [DistroKit] [PATCH 9/9] v7a: barebox-vexpress: " Roland Hieber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190605081341.ahjjmptckrz2azvg@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=distrokit@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox