]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix termios related targets
authorAndreas Schwab <schwab@suse.de>
Wed, 18 Jun 2025 11:17:29 +0000 (13:17 +0200)
committerAndreas Schwab <schwab@suse.de>
Wed, 18 Jun 2025 14:12:43 +0000 (16:12 +0200)
Move Linux-specific termios headers and tests from misc to termios subdir
and install newly added bits/termios-cbaud.h.

sysdeps/unix/sysv/linux/Makefile

index 913fe736bc18d2bc9e3b90dae7812bd1f7bd06b6..c6b2db83775bba34e7d3992729f42b9b20a99a46 100644 (file)
@@ -151,14 +151,6 @@ sysdep_headers += \
   bits/struct_stat.h \
   bits/struct_stat_time64_helper.h \
   bits/syscall.h \
-  bits/termios-c_cc.h \
-  bits/termios-c_cflag.h \
-  bits/termios-c_iflag.h \
-  bits/termios-c_lflag.h \
-  bits/termios-c_oflag.h \
-  bits/termios-misc.h \
-  bits/termios-struct.h \
-  bits/termios-tcflow.h \
   bits/timerfd.h \
   bits/types/struct_msqid64_ds.h \
   bits/types/struct_msqid64_ds_helper.h \
@@ -236,7 +228,6 @@ tests += \
   tst-sysvmsg-linux \
   tst-sysvsem-linux \
   tst-sysvshm-linux \
-  tst-termios-linux \
   tst-tgkill \
   tst-timerfd \
   tst-ttyname-direct \
@@ -421,6 +412,24 @@ tst-rseq-disable-static-ENV = GLIBC_TUNABLES=glibc.pthread.rseq=0
 
 endif # $(subdir) == misc
 
+ifeq ($(subdir),termios)
+sysdep_headers += \
+  bits/termios-c_cc.h \
+  bits/termios-c_cflag.h \
+  bits/termios-c_iflag.h \
+  bits/termios-c_lflag.h \
+  bits/termios-c_oflag.h \
+  bits/termios-cbaud.h \
+  bits/termios-misc.h \
+  bits/termios-struct.h \
+  bits/termios-tcflow.h \
+  # sysdep_headers
+
+tests += \
+  tst-termios-linux \
+  # tests
+endif
+
 ifeq ($(subdir),time)
 sysdep_headers += \
   bits/timex.h \