]> code.ossystems Code Review - openembedded-core.git/commit
package: Refactor to remove isElf/is_elf function duplication
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Jul 2018 08:45:28 +0000 (08:45 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Jul 2018 10:52:07 +0000 (11:52 +0100)
commit7ad0c0d6ab12bebeac097fc0f5210c876dcfe9be
treee3f6cbdc2308f9c8a29b268d195e06ba4545cea1
parentb5788fb1f795f2f35d1788d8311e12984ffb2122
package: Refactor to remove isElf/is_elf function duplication

There are probably further cleanups needed here but this at least removes
the major code duplication between these two similar funcitons, keeping the
kernel module ".ko" extension check for efficiency to avoid opening and
reading file contents in the general case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass
meta/lib/oe/package.py