Skip to content

Commit 8cecbf5

Browse files
committed
chromium: Remove gitfiles present in chromium tarball
The chromium release tarballs contain several ancillary gitfiles like .gitignore. These files confuse devtool, and prevent its use for managing chromium patches until they are manually removed. Since they serve no purpose, append a do_unpack stub which removes them. Arguably, devtool should ignore ancillary gitfiles if there is no actual .git directory present: I will follow up on that upstream as well. Signed-off-by: Calvin Owens <[email protected]>
1 parent 198b0f7 commit 8cecbf5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

meta-chromium/recipes-browser/chromium/chromium.inc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,3 +604,15 @@ LIC_FILES_CHKSUM = "\
604604
file://${S}/url/third_party/mozilla/LICENSE.txt;md5=437ced1e9b232651b0912a9594da43b2 \
605605
file://${S}/v8/LICENSE;md5=3f722db07a0a940a6c859c5c9c2c78fd \
606606
"
607+
608+
unlink_orphaned_gitfiles() {
609+
rm -f ${S}/.git-blame-ignore-revs
610+
rm -f ${S}/.gitallowed
611+
rm -f ${S}/.gitattributes
612+
rm -f ${S}/.gitignore
613+
rm -f ${S}/.gitmodules
614+
}
615+
616+
do_unpack:append() {
617+
bb.build.exec_func('unlink_orphaned_gitfiles', d)
618+
}

0 commit comments

Comments
 (0)