We have made some changes in kernel and so we have new customized defconfig.
We have followed below folder structure:
├── conf
│ └── layer.conf
├── README.md
├── recipes-kernel
│ └── linux
│ ├── linux-toradex
│ │ ├── 0001-gps-gsm-integration.patch
│ │ ├── 0001-WIFI--integrated.patch
│ │ └── defconfig
│ └── linux-toradex_4.9-2.3.x.bbappend
Our linux-toradex_4.9-2.3.x.bbappend looks like below:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://0001-gps-gsm-integration.patch \
file://0001-WIFI--integrated.patch \
file://defconfig"
Our layer.conf is :
BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "meta-mylayer"
BBFILE_PATTERN_meta-mylayer := "^${LAYERDIR}/"
BBFILE_PRIORITY_meta-mylayer = "99"
However when we compile using ‘bitbake -k console-tdx-image’ our defconfig changes doesn’t reflect but other 2 patches gets applied correctly.
What could be the wrong here ? Please guide us.
mlinar
2
You should probably put defconfig in machine specific subfolder in linux-toradex folder.
Check this answer.
Dear @mlinar and @jaski.tx
I tried above suggested answer but it did not help me.
I changed my folder structure as below:
├── conf
│ └── layer.conf
├── README.md
├── recipes-kernel
│ └── linux
│ ├── linux-toradex
│ │ └── apalis-imx6
│ │ ├── 0001-gps-gsm-integration.patch
│ │ ├── 0001-WIFI--integrated.patch
│ │ └── defconfig
│ └── linux-toradex_4.9-2.3.x.bbappend
My .bbapend looks like below:
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += "file://0001-gps-gsm-integration.patch \
file://0001-WIFI--integrated.patch \
file://defconfig"
I can see that .patch are getting applied but not the defconfig.
Could you please let me know how to achieve this ?
Dear @deven.tx @jaski.tx @mlinar
Its working now. Thanks for your suggestions.
Hi @amit251291 ,
Could you please try by using the below config.
-
Use only your two patches in SRC_URI,
SRC_URI += "file://0001-gps-gsm-integration.patch \
file://0001-WIFI–integrated.patch "
-
Place your patch under linux-toradex/ directory. (not in apalis_imx6)
-
Place your defconfig in linux-toradex/apalis_imx6/defconfig .
Now build the image.
For debugging purposes, you can also see in tmp/ directory under your build.
Best Regards,
Deven
Perfect that it works. Thanks for the feedback.