mirror of
https://github.com/systemd/systemd
synced 2026-03-05 20:54:45 +01:00
Compare commits
4 Commits
0ce96f4152
...
68f18549c5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
68f18549c5 | ||
|
|
ddbf960574 | ||
|
|
2bfb92a978 | ||
|
|
2f1bcc4d4d |
@ -17,7 +17,6 @@ rules = files('''
|
|||||||
60-serial.rules
|
60-serial.rules
|
||||||
70-joystick.rules
|
70-joystick.rules
|
||||||
70-mouse.rules
|
70-mouse.rules
|
||||||
70-memory.rules
|
|
||||||
70-touchpad.rules
|
70-touchpad.rules
|
||||||
75-net-description.rules
|
75-net-description.rules
|
||||||
75-probe_mtd.rules
|
75-probe_mtd.rules
|
||||||
@ -29,6 +28,10 @@ if conf.get('HAVE_KMOD') == 1
|
|||||||
rules += files('80-drivers.rules')
|
rules += files('80-drivers.rules')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if dmi_arches.contains(host_machine.cpu_family())
|
||||||
|
rules += files('70-memory.rules')
|
||||||
|
endif
|
||||||
|
|
||||||
install_data(rules,
|
install_data(rules,
|
||||||
install_dir : udevrulesdir)
|
install_dir : udevrulesdir)
|
||||||
|
|
||||||
|
|||||||
@ -1240,9 +1240,14 @@ ColorMode get_color_mode(void) {
|
|||||||
|
|
||||||
else if (getpid_cached() == 1)
|
else if (getpid_cached() == 1)
|
||||||
/* PID1 outputs to the console without holding it open all the time.
|
/* PID1 outputs to the console without holding it open all the time.
|
||||||
* Also note the Linux console can only handle 16 colors.
|
*
|
||||||
*/
|
* Note that the Linux console can only display 16 colors. We still enable 256 color
|
||||||
cached_color_mode = getenv_terminal_is_dumb() ? COLOR_OFF : COLOR_16;
|
* mode even for PID1 output though (which typically goes to the Linux console),
|
||||||
|
* since the Linux console is able to parse the 256 color sequences and automatically
|
||||||
|
* map them to the closest color in the 16 color palette (since kernel 3.16). Doing
|
||||||
|
* 256 colors is nice for people who invoke systemd in a container or via a serial
|
||||||
|
* link or such, and use a true 256 color terminal to do so. */
|
||||||
|
cached_color_mode = getenv_terminal_is_dumb() ? COLOR_OFF : COLOR_256;
|
||||||
else
|
else
|
||||||
cached_color_mode = terminal_is_dumb() ? COLOR_OFF : COLOR_256;
|
cached_color_mode = terminal_is_dumb() ? COLOR_OFF : COLOR_256;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -164,7 +164,7 @@ libudevd_core = static_library(
|
|||||||
link_with : udev_link_with,
|
link_with : udev_link_with,
|
||||||
dependencies : [libblkid, libkmod])
|
dependencies : [libblkid, libkmod])
|
||||||
|
|
||||||
foreach prog : [['ata_id/ata_id.c'],
|
udev_id_progs = [['ata_id/ata_id.c'],
|
||||||
['cdrom_id/cdrom_id.c'],
|
['cdrom_id/cdrom_id.c'],
|
||||||
['fido_id/fido_id.c',
|
['fido_id/fido_id.c',
|
||||||
'fido_id/fido_id_desc.c',
|
'fido_id/fido_id_desc.c',
|
||||||
@ -174,11 +174,16 @@ foreach prog : [['ata_id/ata_id.c'],
|
|||||||
'scsi_id/scsi_serial.c',
|
'scsi_id/scsi_serial.c',
|
||||||
'scsi_id/scsi.h'],
|
'scsi_id/scsi.h'],
|
||||||
['v4l_id/v4l_id.c'],
|
['v4l_id/v4l_id.c'],
|
||||||
['dmi_memory_id/dmi_memory_id.c'],
|
|
||||||
['mtd_probe/mtd_probe.c',
|
['mtd_probe/mtd_probe.c',
|
||||||
'mtd_probe/mtd_probe.h',
|
'mtd_probe/mtd_probe.h',
|
||||||
'mtd_probe/probe_smartmedia.c']]
|
'mtd_probe/probe_smartmedia.c']]
|
||||||
|
|
||||||
|
dmi_arches = ['x86', 'x86_64', 'aarch64', 'arm', 'ia64', 'mips']
|
||||||
|
if dmi_arches.contains(host_machine.cpu_family())
|
||||||
|
udev_id_progs += [['dmi_memory_id/dmi_memory_id.c']]
|
||||||
|
endif
|
||||||
|
|
||||||
|
foreach prog : udev_id_progs
|
||||||
executable(prog[0].split('/')[0],
|
executable(prog[0].split('/')[0],
|
||||||
prog,
|
prog,
|
||||||
include_directories : includes,
|
include_directories : includes,
|
||||||
|
|||||||
@ -133,7 +133,7 @@ if conf.get('ENABLE_HWDB') == 1
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if want_tests != false
|
if want_tests != false and dmi_arches.contains(host_machine.cpu_family())
|
||||||
udev_dmi_memory_id_test = find_program('udev-dmi-memory-id-test.sh')
|
udev_dmi_memory_id_test = find_program('udev-dmi-memory-id-test.sh')
|
||||||
test('udev-dmi-memory-id-test',
|
test('udev-dmi-memory-id-test',
|
||||||
udev_dmi_memory_id_test,
|
udev_dmi_memory_id_test,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user