]> code.ossystems Code Review - meta-freescale.git/commitdiff
eth-config: use pattern match for xml files installation
authorZhenhua Luo <zhenhua.luo@freescale.com>
Mon, 20 May 2013 13:12:05 +0000 (13:12 +0000)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 21 May 2013 02:19:45 +0000 (10:19 +0800)
Use pattern match to install xml files and no need to update recipe if xml
files are added, renamed or deleted.

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
meta-fsl-ppc/recipes-tools/eth-config/eth-config_git.bb

index f1e957cfe02f000cd11e9e9c5d35921285de0a47..3ed50a5cd418f0fef16f22c969b648bb12552bde 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "eth-config"
 LICENSE = "Freescale EULA"
 LIC_FILES_CHKSUM = "file://COPYING;md5=cf02dc8eb5ac4a76f3812826520dea87"
 
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "git://git.freescale.com/ppc/sdk/eth-config.git"
 SRCREV = "c1400695e56aa80f2f4c88c4e0582028248ae06f"
@@ -12,11 +12,8 @@ S = "${WORKDIR}/git"
 
 do_install() {
        install -d ${D}/etc/fmc/config
-       install -m 644 ${S}/8c-128fq-p.xml ${D}/etc/fmc/config
-       install -m 644 ${S}/cfg-8c.xml ${D}/etc/fmc/config
+       install -m 644 ${S}/*.xml ${D}/etc/fmc/config
        install -d ${D}/etc/fmc/config/shared_mac
-       install -m 644 ${S}/shared_mac/hv2p_config_p4_shared_mac.xml ${D}/etc/fmc/config/shared_mac
-       install -m 644 ${S}/shared_mac/hv2p_policy_shared_mac.xml ${D}/etc/fmc/config/shared_mac
-       install -m 644 ${S}/shared_mac/hv2p_swparser_shared_mac.xml ${D}/etc/fmc/config/shared_mac
+       install -m 644 ${S}/shared_mac/*.xml ${D}/etc/fmc/config/shared_mac
        install -m 644 ${S}/shared_mac/README ${D}/etc/fmc/config/shared_mac
 }