Skip to content

Commit

Permalink
Merge pull request linux4sam#231 from alexandrebelloni/master
Browse files Browse the repository at this point in the history
kernel: Drop KBUILD_DEFCONFIG
  • Loading branch information
gehariprasath authored Jan 31, 2023
2 parents aa1bda9 + 4456915 commit a8b1c91
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
3 changes: 0 additions & 3 deletions conf/machine/include/sama7.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ PREFERRED_PROVIDER_jpeg-native ?= "jpeg-native"
SERIAL_CONSOLES ?= "115200;ttyS0"
WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
EXTRA_IMAGEDEPENDS += "sam-ba-native"

# default kernel defconfig
KBUILD_DEFCONFIG = "sama7_defconfig"
1 change: 1 addition & 0 deletions conf/machine/sama7g5ek-emmc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ UBOOT_LOADADDRESS = "0x62000000"
UBOOT_ENV_SIZE = "0x4000"

AT91BOOTSTRAP_MACHINE ?= "sama7g5ek"
KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} sama7_defconfig"

# Needed for FIT
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-at91"
Expand Down
1 change: 1 addition & 0 deletions conf/machine/sama7g5ek-sd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ UBOOT_LOADADDRESS = "0x62000000"
UBOOT_ENV_SIZE = "0x4000"

AT91BOOTSTRAP_MACHINE ?= "sama7g5ek"
KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} sama7_defconfig"

# Needed for FIT
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = " dt-overlay-at91"
Expand Down
10 changes: 0 additions & 10 deletions recipes-kernel/linux/linux-at91_5.4.81.bb
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ python __anonymous () {
d.appendVar('DEPENDS', ' u-boot-mkimage-native dtc-native')
}

do_configure:prepend() {
if [ ! -f "${WORKDIR}/defconfig" ] && [ -n "${KBUILD_DEFCONFIG}" ]; then
if [ -f "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" ]; then
cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${WORKDIR}/defconfig
else
bbfatal "A KBUILD_DEFCONFIG '${KBUILD_DEFCONFIG}' was specified, but not present in the source tree"
fi
fi
}

do_configure:append() {
frags=""
for fragment in ${WORKDIR}/*.cfg
Expand Down

0 comments on commit a8b1c91

Please sign in to comment.