linux icon indicating copy to clipboard operation
linux copied to clipboard

"bcm2711_defconfig" not pulled when fetching single commit

Open tnagyzambo opened this issue 3 years ago • 1 comments

Describe the bug

I am building a patched version of the rpi kernel in an automated docker container. To do this I perform a shallow git clone of the 5.15.y branch and perform the patch. A patch revision is currently forcing me to use an older commit on the 5.15.y branch. When attempting to do a shallow git clone of this particular branch the bcm2711_defconfig is not included causing my build to fail. This seems to be the case for all shallow clones of single commits on the 5.15.y branch that I've tested. This file only seems to come over when pulling the latest commit.

Steps to reproduce the behaviour

mkdir linux
cd linux
git init
git remote add origin https://github.com/raspberrypi/linux
git fetch --depth 1 origin 207ca688162d4d77129981a8b4352114b97a52b5
git checkout FETCH_HEAD

Observe linux/arch/arm64/configs/bcm2711_defconfig is missing

Device (s)

Other

System

N/A

Logs

No response

Additional context

No response

tnagyzambo avatar Jun 20 '22 17:06 tnagyzambo

207ca688162d4d77129981a8b4352114b97a52b5 is a merge of an upstream commit (tagged v5.15.45). It is not contained in the raspberrypi tree and so contains no raspberry pi patches.

You might find it useful to use a tree view (e.g. tig) of the git commits that make it clearer which ones are on our downstream tree and which are commits merged from upstream.

popcornmix avatar Jun 20 '22 17:06 popcornmix