Blame view

recipes-core/systemd/systemd-serialgetty.bbappend 1.43 KB
752165840   Eric Lee   Remove Redundant ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  
  SRC_URI_append_smarcimx8mm2g = " \
  	file://disable-serialgetty.sh \
  	file://disable-serialgetty.service \
  "
  FILES_${PN}_append_smarcimx8mm2g = " \ 
          /lib/systemd/system/* \
          /etc/systemd/system/* \
  "
  
  do_install_append_smarcimx8mm2g() {
  	install -d ${D}${systemd_unitdir}/system
  	install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants
  	install -m 0644 ${WORKDIR}/disable-serialgetty.service ${D}${systemd_unitdir}/system
  	install -m 0755 ${WORKDIR}/disable-serialgetty.sh ${D}${systemd_unitdir}/system
  	
  	ln -sf ${systemd_unitdir}/system/disable-serialgetty.service \
  		${D}${sysconfdir}/systemd/system/sysinit.target.wants/disable-serialgetty.service
  }
  
  SRC_URI_append_smarcimx8mm4g = " \
          file://disable-serialgetty.sh \
          file://disable-serialgetty.service \
  "
  FILES_${PN}_append_smarcimx8mm4g = " \
          /lib/systemd/system/* \
          /etc/systemd/system/* \
  "
  
  do_install_append_smarcimx8mm4g() {
          install -d ${D}${systemd_unitdir}/system
          install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants
          install -m 0644 ${WORKDIR}/disable-serialgetty.service ${D}${systemd_unitdir}/system
          install -m 0755 ${WORKDIR}/disable-serialgetty.sh ${D}${systemd_unitdir}/system
  
          ln -sf ${systemd_unitdir}/system/disable-serialgetty.service \
                  ${D}${sysconfdir}/systemd/system/sysinit.target.wants/disable-serialgetty.service
  }