diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-04-25 21:23:17 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-04-29 19:15:36 +0300 |
commit | d942b7a7f9216ae16288fdc77923b83ee5ade84d (patch) | |
tree | 8f1677506f77d93f645708cd6a206d5b24d0d39d /meta-aspeed | |
parent | 35b0af8b94494582a8249a69b84ca7659b3b94fb (diff) | |
download | openbmc-d942b7a7f9216ae16288fdc77923b83ee5ade84d.tar.xz |
meta-aspeed: MACHINEOVERRIDES fixups
OE-Core adds the value of SOC_FAMILY to MACHINEOVERRIDES, so explicitly
setting a MACHINEOVERRIDES is redundant. Drop the explicit
ast2400/ast2500 MACHINEOVERRIDES and use the OE-Core provided aspeed-g4
and aspeed-g5 instead.
After the redundant ast2400/ast2500 overrides are dropped, the ordering
of the values in MACHINEOVERRIDES is wrong:
MACHINEOVERRIDES="aspeed-g5:aspeed"
This means that:
FOO_aspeed = "bar"
will override:
FOO_aspeed-g5 = "baz"
which is the opposite of expectation. The ordering is a function of
config file include order and choice of the predot vs postdot operator.
Use the same include ordering and dot operators as meta-fsl-arm to get
the overrides to appear in MACHINEOVERRIDES in the correct order such
that the expected semantics are provided and:
FOO_aspeed-g5 = "bar"
will override:
FOO_aspeed = "baz"
Drop explicit setting for FILESPATH as OE-Core adds OVERRIDES to
FILESPATH and bitbake will find the appropriate defconfig without them.
Move defconfigs to aspeed-g4 and aspeed-g5 since the ast2400 and ast2500
are being removed.
(From meta-aspeed rev: 85d614a69c1e752fb4d5917499500c37c4f745ac)
Change-Id: I63c0f71f14bf9145e7e769902be87bb267a78a30
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-aspeed')
-rw-r--r-- | meta-aspeed/conf/machine/include/aspeed.inc | 2 | ||||
-rw-r--r-- | meta-aspeed/conf/machine/include/ast2400.inc | 9 | ||||
-rw-r--r-- | meta-aspeed/conf/machine/include/ast2500.inc | 13 | ||||
-rw-r--r-- | meta-aspeed/recipes-kernel/linux/linux-aspeed.inc | 3 | ||||
-rw-r--r-- | meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g4/defconfig (renamed from meta-aspeed/recipes-kernel/linux/ast2400/defconfig) | 0 | ||||
-rwxr-xr-x | meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g5/defconfig (renamed from meta-aspeed/recipes-kernel/linux/ast2500/defconfig) | 0 |
6 files changed, 9 insertions, 18 deletions
diff --git a/meta-aspeed/conf/machine/include/aspeed.inc b/meta-aspeed/conf/machine/include/aspeed.inc index 88290ff82..36153cf5e 100644 --- a/meta-aspeed/conf/machine/include/aspeed.inc +++ b/meta-aspeed/conf/machine/include/aspeed.inc @@ -3,4 +3,4 @@ PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-aspeed" PREFERRED_PROVIDER_u-boot ?= "u-boot-aspeed" PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-fw-utils-aspeed" -MACHINEOVERRIDES .= ":aspeed" +MACHINEOVERRIDES =. "aspeed:" diff --git a/meta-aspeed/conf/machine/include/ast2400.inc b/meta-aspeed/conf/machine/include/ast2400.inc index 22374752d..a7c900aa7 100644 --- a/meta-aspeed/conf/machine/include/ast2400.inc +++ b/meta-aspeed/conf/machine/include/ast2400.inc @@ -2,7 +2,10 @@ #@NAME: Aspeed AST2400 #@DESCRIPTION: Common machine configuration for the Aspeed AST2400 Chip +SOC_FAMILY = "aspeed-g4" +include conf/machine/include/soc-family.inc require conf/machine/include/aspeed.inc +require conf/machine/include/tune-arm926ejs.inc UBOOT_MACHINE ?= "ast_g4_ncsi_config" UBOOT_ENTRYPOINT ?= "0x40001000" @@ -11,9 +14,3 @@ UBOOT_LOADADDRESS ?= "0x40001000" MACHINE_EXTRA_RDEPENDS += "udev-aspeed-vuart" SERIAL_CONSOLES = "115200;ttyS4" - -SOC_FAMILY = "aspeed-g4" -include conf/machine/include/soc-family.inc -MACHINEOVERRIDES .= ":ast2400" - -require conf/machine/include/tune-arm926ejs.inc diff --git a/meta-aspeed/conf/machine/include/ast2500.inc b/meta-aspeed/conf/machine/include/ast2500.inc index fe079ee61..49a62110a 100644 --- a/meta-aspeed/conf/machine/include/ast2500.inc +++ b/meta-aspeed/conf/machine/include/ast2500.inc @@ -2,20 +2,17 @@ #@NAME: Aspeed AST2500 #@DESCRIPTION: Common machine configuration for the Aspeed AST2500 Chip +SOC_FAMILY = "aspeed-g5" +include conf/machine/include/soc-family.inc require conf/machine/include/aspeed.inc +DEFAULTTUNE ?= "arm1176jzs" +require conf/machine/include/tune-arm1176jz-s.inc + UBOOT_MACHINE ?= "ast_g5_ncsi_config" UBOOT_ENTRYPOINT ?= "0x80001000" UBOOT_LOADADDRESS ?= "0x80001000" MACHINE_EXTRA_RDEPENDS += "udev-aspeed-vuart" -DEFAULTTUNE ?= "arm1176jzs" - SERIAL_CONSOLES = "115200;ttyS4" - -SOC_FAMILY = "aspeed-g5" -include conf/machine/include/soc-family.inc -MACHINEOVERRIDES .= ":ast2500" - -require conf/machine/include/tune-arm1176jz-s.inc diff --git a/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc b/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc index 93433939d..06c9e3c58 100644 --- a/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc +++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc @@ -10,9 +10,6 @@ KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}" SRC_URI = "${KSRC}" SRC_URI += " file://defconfig" -FILESEXTRAPATHS_prepend_ast2400 := "${THISDIR}/ast2400:" -FILESEXTRAPATHS_prepend_ast2500 := "${THISDIR}/ast2500:" - LINUX_VERSION_EXTENSION ?= "-${SRCREV}" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/meta-aspeed/recipes-kernel/linux/ast2400/defconfig b/meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g4/defconfig index 3d9880b59..3d9880b59 100644 --- a/meta-aspeed/recipes-kernel/linux/ast2400/defconfig +++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g4/defconfig diff --git a/meta-aspeed/recipes-kernel/linux/ast2500/defconfig b/meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g5/defconfig index 1452eec6c..1452eec6c 100755 --- a/meta-aspeed/recipes-kernel/linux/ast2500/defconfig +++ b/meta-aspeed/recipes-kernel/linux/linux-aspeed/aspeed-g5/defconfig |