head	1.89;
access;
symbols
	RELENG_8_4:1.88.0.2
	RELENG_9_1_0_RELEASE:1.85.2.2.2.2
	RELENG_9_1:1.85.2.2.0.2
	RELENG_9_1_BP:1.85.2.2
	RELENG_8_3_0_RELEASE:1.80.2.3.2.1
	RELENG_8_3:1.80.2.3.0.2
	RELENG_8_3_BP:1.80.2.3
	RELENG_9_0_0_RELEASE:1.85.2.1.2.1
	RELENG_9_0:1.85.2.1.0.2
	RELENG_9_0_BP:1.85.2.1
	RELENG_9:1.85.0.2
	RELENG_9_BP:1.85
	RELENG_7_4_0_RELEASE:1.72.2.3.4.1
	RELENG_8_2_0_RELEASE:1.80.2.2.4.1
	RELENG_7_4:1.72.2.3.0.4
	RELENG_7_4_BP:1.72.2.3
	RELENG_8_2:1.80.2.2.0.4
	RELENG_8_2_BP:1.80.2.2
	RELENG_8_1_0_RELEASE:1.80.2.2.2.1
	RELENG_8_1:1.80.2.2.0.2
	RELENG_8_1_BP:1.80.2.2
	RELENG_7_3_0_RELEASE:1.72.2.3.2.1
	RELENG_7_3:1.72.2.3.0.2
	RELENG_7_3_BP:1.72.2.3
	RELENG_8_0_0_RELEASE:1.80.2.1.2.1
	RELENG_8_0:1.80.2.1.0.2
	RELENG_8_0_BP:1.80.2.1
	RELENG_8:1.80.0.2
	RELENG_8_BP:1.80
	RELENG_7_2_0_RELEASE:1.72.8.1
	RELENG_7_2:1.72.0.8
	RELENG_7_2_BP:1.72
	RELENG_7_1_0_RELEASE:1.72.6.1
	RELENG_6_4_0_RELEASE:1.63.2.3.4.1
	RELENG_7_1:1.72.0.6
	RELENG_7_1_BP:1.72
	RELENG_6_4:1.63.2.3.0.4
	RELENG_6_4_BP:1.63.2.3
	RELENG_7_0_0_RELEASE:1.72
	RELENG_6_3_0_RELEASE:1.63.2.3
	RELENG_7_0:1.72.0.4
	RELENG_7_0_BP:1.72
	RELENG_6_3:1.63.2.3.0.2
	RELENG_6_3_BP:1.63.2.3
	RELENG_7:1.72.0.2
	RELENG_7_BP:1.72
	RELENG_6_2_0_RELEASE:1.63.2.2
	RELENG_6_2:1.63.2.2.0.2
	RELENG_6_2_BP:1.63.2.2
	RELENG_5_5_0_RELEASE:1.62
	RELENG_5_5:1.62.0.10
	RELENG_5_5_BP:1.62
	RELENG_6_1_0_RELEASE:1.63.2.1
	RELENG_6_1:1.63.2.1.0.2
	RELENG_6_1_BP:1.63.2.1
	RELENG_6_0_0_RELEASE:1.63
	RELENG_6_0:1.63.0.4
	RELENG_6_0_BP:1.63
	RELENG_6:1.63.0.2
	RELENG_6_BP:1.63
	RELENG_5_4_0_RELEASE:1.62
	RELENG_5_4:1.62.0.8
	RELENG_5_4_BP:1.62
	RELENG_4_11_0_RELEASE:1.34.2.12
	RELENG_4_11:1.34.2.12.0.8
	RELENG_4_11_BP:1.34.2.12
	RELENG_5_3_0_RELEASE:1.62
	RELENG_5_3:1.62.0.6
	RELENG_5_3_BP:1.62
	RELENG_5:1.62.0.4
	RELENG_5_BP:1.62
	RELENG_4_10_0_RELEASE:1.34.2.12
	RELENG_4_10:1.34.2.12.0.6
	RELENG_4_10_BP:1.34.2.12
	RELENG_5_2_1_RELEASE:1.62
	RELENG_5_2_0_RELEASE:1.62
	RELENG_5_2:1.62.0.2
	RELENG_5_2_BP:1.62
	RELENG_4_9_0_RELEASE:1.34.2.12
	RELENG_4_9:1.34.2.12.0.4
	RELENG_4_9_BP:1.34.2.12
	RELENG_5_1_0_RELEASE:1.61
	RELENG_5_1:1.61.0.2
	RELENG_5_1_BP:1.61
	RELENG_4_8_0_RELEASE:1.34.2.12
	RELENG_4_8:1.34.2.12.0.2
	RELENG_4_8_BP:1.34.2.12
	RELENG_5_0_0_RELEASE:1.60
	RELENG_5_0:1.60.0.2
	RELENG_5_0_BP:1.60
	RELENG_4_7_0_RELEASE:1.34.2.11
	RELENG_4_7:1.34.2.11.0.2
	RELENG_4_7_BP:1.34.2.11
	RELENG_4_6_2_RELEASE:1.34.2.9
	RELENG_4_6_1_RELEASE:1.34.2.9
	RELENG_4_6_0_RELEASE:1.34.2.9
	RELENG_4_6:1.34.2.9.0.4
	RELENG_4_6_BP:1.34.2.9
	RELENG_4_5_0_RELEASE:1.34.2.9
	RELENG_4_5:1.34.2.9.0.2
	RELENG_4_5_BP:1.34.2.9
	RELENG_4_4_0_RELEASE:1.34.2.6
	RELENG_4_4:1.34.2.6.0.2
	RELENG_4_4_BP:1.34.2.6
	KSE_MILESTONE_2:1.53
	KSE_PRE_MILESTONE_2:1.53
	RELENG_4_3_0_RELEASE:1.34.2.5
	RELENG_4_3:1.34.2.5.0.2
	RELENG_4_3_BP:1.34.2.5
	RELENG_4_2_0_RELEASE:1.34.2.4
	AFTER_MIMD_SPLIT_RELENG4:1.34.2.3
	RELENG_4_1_1_RELEASE:1.34.2.1
	PRE_SMPNG:1.40
	RELENG_4_1_0_RELEASE:1.34.2.1
	RELENG_3_5_0_RELEASE:1.24.2.2
	RELENG_4_0_0_RELEASE:1.34
	RELENG_4:1.34.0.2
	RELENG_4_BP:1.34
	RELENG_3_4_0_RELEASE:1.24.2.2
	RELENG_3_3_0_RELEASE:1.24.2.2
	RELENG_3_2_PAO:1.24.2.1.0.2
	RELENG_3_2_PAO_BP:1.24.2.1
	RELENG_3_2_0_RELEASE:1.24.2.1
	POST_VFS_BIO_NFS_PATCH:1.25
	PRE_VFS_BIO_NFS_PATCH:1.25
	POST_SMP_VMSHARE:1.25
	PRE_SMP_VMSHARE:1.25
	POST_NEWBUS:1.25
	PRE_NEWBUS:1.25
	RELENG_3_1_0_RELEASE:1.24.2.1
	RELENG_3:1.24.0.2
	RELENG_3_BP:1.24
	RELENG_3_0_0_RELEASE:1.19
	old_RELENG_2_2_7_RELEASE:1.8.2.1
	old_RELENG_2_2_6_RELEASE:1.8.2.1
	old_RELENG_2_2_5_RELEASE:1.8.2.1
	old_RELENG_2_2_2_RELEASE:1.8.2.1
	old_RELENG_2_2_1_RELEASE:1.8.2.1
	old_RELENG_2_2_0_RELEASE:1.8.2.1
	old_RELENG_2_1_7_RELEASE:1.1.2.1
	old_RELENG_2_1_6_1_RELEASE:1.1.2.1
	old_RELENG_2_1_6_RELEASE:1.1.2.1
	old_RELENG_2_2:1.8.0.2
	old_RELENG_2_2_BP:1.8
	old_RELENG_2_1_5_RELEASE:1.1.2.1
	old_RELENG_2_1_0_RELEASE:1.1
	old_RELENG_2_1_0:1.1.0.2;
locks; strict;
comment	@# @;


1.89
date	2013.06.18.00.41.58;	author svnexp;	state Exp;
branches;
next	1.88;

1.88
date	2012.11.17.01.52.57;	author svnexp;	state Exp;
branches
	1.88.2.1;
next	1.87;

1.87
date	2012.05.06.11.41.00;	author uqs;	state Exp;
branches;
next	1.86;

1.86
date	2012.02.28.18.30.18;	author dim;	state Exp;
branches;
next	1.85;

1.85
date	2011.02.20.19.33.47;	author dim;	state Exp;
branches
	1.85.2.1;
next	1.84;

1.84
date	2011.02.12.18.17.12;	author dchagin;	state Exp;
branches;
next	1.83;

1.83
date	2010.08.23.06.13.29;	author imp;	state Exp;
branches;
next	1.82;

1.82
date	2010.05.24.07.04.00;	author wkoszek;	state Exp;
branches;
next	1.81;

1.81
date	2010.03.11.14.49.06;	author nwhitehorn;	state Exp;
branches;
next	1.80;

1.80
date	2009.06.08.19.57.35;	author bz;	state Exp;
branches
	1.80.2.1;
next	1.79;

1.79
date	2009.06.06.17.01.44;	author rwatson;	state Exp;
branches;
next	1.78;

1.78
date	2009.05.26.20.57.19;	author des;	state Exp;
branches;
next	1.77;

1.77
date	2009.05.26.20.22.03;	author des;	state Exp;
branches;
next	1.76;

1.76
date	2009.05.07.10.01.05;	author dchagin;	state Exp;
branches;
next	1.75;

1.75
date	2009.02.12.14.44.15;	author n_hibma;	state Exp;
branches;
next	1.74;

1.74
date	2008.12.02.21.37.28;	author bz;	state Exp;
branches;
next	1.73;

1.73
date	2008.09.01.23.59.00;	author imp;	state Exp;
branches;
next	1.72;

1.72
date	2007.05.23.15.45.52;	author kib;	state Exp;
branches
	1.72.2.1
	1.72.6.1
	1.72.8.1;
next	1.71;

1.71
date	2007.05.23.08.33.06;	author kib;	state Exp;
branches;
next	1.70;

1.70
date	2006.10.29.14.02.39;	author netchild;	state Exp;
branches;
next	1.69;

1.69
date	2006.10.15.14.22.14;	author netchild;	state Exp;
branches;
next	1.68;

1.68
date	2006.08.15.13.01.36;	author netchild;	state Exp;
branches;
next	1.67;

1.67
date	2006.05.05.16.10.45;	author ambrisko;	state Exp;
branches;
next	1.66;

1.66
date	2006.03.18.18.20.16;	author netchild;	state Exp;
branches;
next	1.65;

1.65
date	2006.01.26.19.21.27;	author alc;	state Exp;
branches;
next	1.64;

1.64
date	2005.10.14.23.30.12;	author yar;	state Exp;
branches;
next	1.63;

1.63
date	2005.06.04.16.57.04;	author imp;	state Exp;
branches
	1.63.2.1;
next	1.62;

1.62
date	2003.11.19.05.08.26;	author imp;	state Exp;
branches
	1.62.4.1;
next	1.61;

1.61
date	2003.02.03.17.43.20;	author ume;	state Exp;
branches;
next	1.60;

1.60
date	2002.09.08.02.59.38;	author peter;	state Exp;
branches;
next	1.59;

1.59
date	2002.09.07.18.02.13;	author tmm;	state Exp;
branches;
next	1.58;

1.58
date	2002.08.01.22.23.02;	author rwatson;	state Exp;
branches;
next	1.57;

1.57
date	2002.05.19.01.27.14;	author marcel;	state Exp;
branches;
next	1.56;

1.56
date	2002.02.22.18.21.20;	author des;	state Exp;
branches;
next	1.55;

1.55
date	2002.01.10.03.52.52;	author msmith;	state Exp;
branches;
next	1.54;

1.54
date	2001.11.18.05.45.27;	author marcel;	state Exp;
branches;
next	1.53;

1.53
date	2001.09.08.19.07.04;	author marcel;	state Exp;
branches;
next	1.52;

1.52
date	2001.08.29.19.05.27;	author gallatin;	state Exp;
branches;
next	1.51;

1.51
date	2001.02.04.10.52.24;	author peter;	state Exp;
branches;
next	1.50;

1.50
date	2001.01.07.03.10.15;	author peter;	state Exp;
branches;
next	1.49;

1.49
date	2001.01.06.13.59.54;	author obrien;	state Exp;
branches;
next	1.48;

1.48
date	2000.12.03.01.30.31;	author marcel;	state Exp;
branches;
next	1.47;

1.47
date	2000.12.02.23.47.41;	author marcel;	state Exp;
branches;
next	1.46;

1.46
date	2000.11.05.03.10.45;	author marcel;	state Exp;
branches;
next	1.45;

1.45
date	2000.11.02.13.48.53;	author sheldonh;	state Exp;
branches;
next	1.44;

1.44
date	2000.11.01.23.17.30;	author gallatin;	state Exp;
branches;
next	1.43;

1.43
date	2000.11.01.09.23.12;	author obrien;	state Exp;
branches;
next	1.42;

1.42
date	2000.10.08.16.53.05;	author obrien;	state Exp;
branches;
next	1.41;

1.41
date	2000.10.04.07.20.24;	author obrien;	state Exp;
branches;
next	1.40;

1.40
date	2000.09.06.20.21.55;	author obrien;	state Exp;
branches;
next	1.39;

1.39
date	2000.09.06.20.21.15;	author obrien;	state Exp;
branches;
next	1.38;

1.38
date	2000.08.22.06.02.01;	author marcel;	state Exp;
branches;
next	1.37;

1.37
date	2000.06.03.07.40.19;	author bde;	state Exp;
branches;
next	1.36;

1.36
date	2000.05.27.01.13.52;	author peter;	state Exp;
branches;
next	1.35;

1.35
date	2000.05.04.12.07.37;	author peter;	state Exp;
branches;
next	1.34;

1.34
date	2000.01.09.10.04.53;	author bde;	state Exp;
branches
	1.34.2.1;
next	1.33;

1.33
date	99.12.29.04.54.50;	author peter;	state Exp;
branches;
next	1.32;

1.32
date	99.12.23.19.59.47;	author marcel;	state Exp;
branches;
next	1.31;

1.31
date	99.11.28.18.52.56;	author bde;	state Exp;
branches;
next	1.30;

1.30
date	99.11.12.20.04.59;	author marcel;	state Exp;
branches;
next	1.29;

1.29
date	99.09.03.07.15.38;	author marcel;	state Exp;
branches;
next	1.28;

1.28
date	99.08.28.09.04.21;	author marcel;	state Exp;
branches;
next	1.27;

1.27
date	99.08.28.00.47.24;	author peter;	state Exp;
branches;
next	1.26;

1.26
date	99.08.27.19.47.40;	author marcel;	state Exp;
branches;
next	1.25;

1.25
date	99.01.26.21.29.01;	author julian;	state Exp;
branches;
next	1.24;

1.24
date	98.11.12.00.37.39;	author jkh;	state Exp;
branches
	1.24.2.1;
next	1.23;

1.23
date	98.11.11.07.04.10;	author peter;	state Exp;
branches;
next	1.22;

1.22
date	98.11.10.19.39.58;	author jkh;	state Exp;
branches;
next	1.21;

1.21
date	98.11.05.04.39.26;	author peter;	state Exp;
branches;
next	1.20;

1.20
date	98.11.05.04.22.52;	author peter;	state Exp;
branches;
next	1.19;

1.19
date	98.10.16.04.30.47;	author peter;	state Exp;
branches;
next	1.18;

1.18
date	98.07.07.02.04.20;	author bde;	state Exp;
branches;
next	1.17;

1.17
date	98.07.01.17.10.00;	author bde;	state Exp;
branches;
next	1.16;

1.16
date	98.03.19.12.35.55;	author bde;	state Exp;
branches;
next	1.15;

1.15
date	98.02.06.23.54.21;	author eivind;	state Exp;
branches;
next	1.14;

1.14
date	98.02.04.21.56.36;	author eivind;	state Exp;
branches;
next	1.13;

1.13
date	98.02.01.17.53.55;	author bde;	state Exp;
branches;
next	1.12;

1.12
date	97.12.16.18.45.50;	author eivind;	state Exp;
branches;
next	1.11;

1.11
date	97.02.22.12.48.23;	author peter;	state Exp;
branches;
next	1.10;

1.10
date	97.01.14.06.22.07;	author jkh;	state Exp;
branches;
next	1.9;

1.9
date	97.01.10.05.48.49;	author mpp;	state Exp;
branches;
next	1.8;

1.8
date	96.06.25.20.13.12;	author bde;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	96.03.10.08.42.31;	author sos;	state Exp;
branches;
next	1.6;

1.6
date	96.03.02.20.00.35;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	96.01.27.23.57.06;	author rgrimes;	state Exp;
branches;
next	1.4;

1.4
date	96.01.08.05.36.17;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	96.01.06.23.10.25;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	95.12.29.22.10.49;	author sos;	state Exp;
branches;
next	1.1;

1.1
date	95.06.25.17.29.46;	author sos;	state Exp;
branches
	1.1.2.1;
next	;

1.88.2.1
date	2012.11.17.01.52.57;	author svnexp;	state dead;
branches;
next	1.88.2.2;

1.88.2.2
date	2013.03.28.13.05.21;	author svnexp;	state Exp;
branches;
next	;

1.85.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.85.2.1.2.1;
next	1.85.2.2;

1.85.2.2
date	2012.03.13.18.39.57;	author dim;	state Exp;
branches
	1.85.2.2.2.1;
next	1.85.2.3;

1.85.2.3
date	2012.11.17.11.37.17;	author svnexp;	state Exp;
branches;
next	1.85.2.4;

1.85.2.4
date	2013.02.03.20.17.28;	author svnexp;	state Exp;
branches;
next	;

1.85.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.85.2.1.2.2;

1.85.2.1.2.2
date	2012.11.17.08.37.14;	author svnexp;	state Exp;
branches;
next	;

1.85.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.85.2.2.2.2;

1.85.2.2.2.2
date	2012.11.17.08.48.05;	author svnexp;	state Exp;
branches;
next	;

1.80.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.80.2.1.2.1;
next	1.80.2.2;

1.80.2.2
date	2010.04.07.02.24.41;	author nwhitehorn;	state Exp;
branches
	1.80.2.2.2.1
	1.80.2.2.4.1;
next	1.80.2.3;

1.80.2.3
date	2011.03.02.19.36.06;	author dchagin;	state Exp;
branches
	1.80.2.3.2.1;
next	1.80.2.4;

1.80.2.4
date	2012.11.17.10.36.57;	author svnexp;	state Exp;
branches;
next	;

1.80.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.80.2.2.2.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.80.2.2.4.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.80.2.3.2.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.80.2.3.2.2;

1.80.2.3.2.2
date	2012.11.17.08.25.33;	author svnexp;	state Exp;
branches;
next	;

1.72.2.1
date	2009.05.26.13.37.05;	author dchagin;	state Exp;
branches;
next	1.72.2.2;

1.72.2.2
date	2009.06.15.20.12.27;	author n_hibma;	state Exp;
branches;
next	1.72.2.3;

1.72.2.3
date	2009.06.17.14.45.58;	author des;	state Exp;
branches
	1.72.2.3.2.1
	1.72.2.3.4.1;
next	1.72.2.4;

1.72.2.4
date	2012.11.17.08.06.51;	author svnexp;	state Exp;
branches;
next	;

1.72.2.3.2.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.72.2.3.4.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.72.2.3.4.2;

1.72.2.3.4.2
date	2012.11.17.08.17.27;	author svnexp;	state Exp;
branches;
next	;

1.72.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.72.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.63.2.1
date	2006.02.10.00.38.03;	author yar;	state Exp;
branches;
next	1.63.2.2;

1.63.2.2
date	2006.06.15.15.52.04;	author ambrisko;	state Exp;
branches;
next	1.63.2.3;

1.63.2.3
date	2007.08.29.15.04.26;	author netchild;	state Exp;
branches
	1.63.2.3.4.1;
next	1.63.2.4;

1.63.2.4
date	2012.11.17.07.44.20;	author svnexp;	state Exp;
branches;
next	;

1.63.2.3.4.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.62.4.1
date	2006.07.09.19.49.26;	author markm;	state Exp;
branches;
next	;

1.34.2.1
date	2000.07.07.01.29.00;	author obrien;	state Exp;
branches;
next	1.34.2.2;

1.34.2.2
date	2000.10.31.21.05.36;	author obrien;	state Exp;
branches;
next	1.34.2.3;

1.34.2.3
date	2000.11.01.19.35.31;	author obrien;	state Exp;
branches;
next	1.34.2.4;

1.34.2.4
date	2000.11.05.07.41.42;	author marcel;	state Exp;
branches;
next	1.34.2.5;

1.34.2.5
date	2000.11.22.16.20.12;	author gallatin;	state Exp;
branches;
next	1.34.2.6;

1.34.2.6
date	2001.04.25.11.24.04;	author ru;	state Exp;
branches;
next	1.34.2.7;

1.34.2.7
date	2001.10.15.04.21.25;	author mjacob;	state Exp;
branches;
next	1.34.2.8;

1.34.2.8
date	2001.10.18.19.42.56;	author gallatin;	state Exp;
branches;
next	1.34.2.9;

1.34.2.9
date	2001.11.05.19.08.24;	author marcel;	state Exp;
branches;
next	1.34.2.10;

1.34.2.10
date	2002.07.18.13.31.27;	author ru;	state Exp;
branches;
next	1.34.2.11;

1.34.2.11
date	2002.08.07.16.32.00;	author ru;	state Exp;
branches;
next	1.34.2.12;

1.34.2.12
date	2003.01.02.20.41.34;	author kan;	state Exp;
branches;
next	1.34.2.13;

1.34.2.13
date	2012.11.17.07.26.32;	author svnexp;	state Exp;
branches;
next	;

1.24.2.1
date	99.01.27.20.56.24;	author julian;	state Exp;
branches;
next	1.24.2.2;

1.24.2.2
date	99.08.29.16.27.25;	author peter;	state Exp;
branches;
next	;

1.8.2.1
date	97.01.10.05.54.36;	author mpp;	state Exp;
branches;
next	;

1.1.2.1
date	96.01.28.00.00.10;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.89
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/251869
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/sys/modules/linux/Makefile 251869 2013-06-17 21:30:46Z eadler $

.if ${MACHINE_CPUARCH} == "amd64"
SFX= 32
CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
.endif

.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_CPUARCH}/linux${SFX}

KMOD=	linux
SRCS=	linux_fork.c linux${SFX}_dummy.c linux_emul.c linux_file.c \
	linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
	linux${SFX}_machdep.c linux_mib.c linux_misc.c linux_signal.c \
	linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c \
	linux${SFX}_sysvec.c linux_uid16.c linux_util.c linux_time.c \
	opt_inet6.h opt_compat.h opt_kdtrace.h opt_posix.h opt_usb.h \
	vnode_if.h device_if.h bus_if.h assym.s

# XXX: for assym.s
SRCS+=  opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h
.if ${MACHINE_CPUARCH} == "i386"
SRCS+=	opt_apic.h
.endif

OBJS=	linux${SFX}_locore.o linux${SFX}_support.o

.if ${MACHINE_CPUARCH} == "i386"
SRCS+=	linux_ptrace.c imgact_linux.c opt_cpu.h
.endif

EXPORT_SYMS=
EXPORT_SYMS+=	linux_emul_path
EXPORT_SYMS+=	linux_get_osname
EXPORT_SYMS+=	linux_get_osrelease
EXPORT_SYMS+=	linux_ifname
EXPORT_SYMS+=	linux_ioctl_register_handler
EXPORT_SYMS+=	linux_ioctl_unregister_handler

CLEANFILES=	linux${SFX}_assym.h linux${SFX}_genassym.o

linux${SFX}_assym.h: linux${SFX}_genassym.o
.if exists(@@)
linux${SFX}_assym.h: @@/kern/genassym.sh
.endif
	sh @@/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET}

linux${SFX}_locore.o: linux${SFX}_locore.s linux${SFX}_assym.h
	${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
	    ${.IMPSRC} -o ${.TARGET}

linux${SFX}_support.o: linux${SFX}_support.s assym.s linux${SFX}_assym.h
	${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
	    ${.IMPSRC} -o ${.TARGET}

linux${SFX}_genassym.o: linux${SFX}_genassym.c linux.h @@ machine x86
	${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}

.if !defined(KERNBUILDDIR)
opt_inet6.h:
	echo "#define INET6 1" > ${.TARGET}
.if defined(KTR)
CFLAGS+=	-DKTR
.endif
.endif

.include <bsd.kmod.mk>

# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.linux32_locore.s=	${CLANG_NO_IAS}
CFLAGS+=			${CFLAGS.${.IMPSRC:T}}
@


1.88
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/sys/modules/linux/Makefile 235078 2012-05-06 11:41:00Z uqs $
d55 1
a55 1
linux${SFX}_genassym.o: linux${SFX}_genassym.c linux.h @@ machine
@


1.88.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:05:21 +0000
@
text
@d1 70
@


1.88.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 66
# $FreeBSD: releng/8.4/sys/modules/linux/Makefile 219193 2011-03-02 19:36:06Z dchagin $

.if ${MACHINE_ARCH} == "amd64"
SFX= 32
CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
.endif

.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux${SFX}

KMOD=	linux
SRCS=	linux_fork.c linux${SFX}_dummy.c linux_emul.c linux_file.c \
	linux_futex.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
	linux${SFX}_machdep.c linux_mib.c linux_misc.c linux_signal.c \
	linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c \
	linux${SFX}_sysvec.c linux_uid16.c linux_util.c linux_time.c \
	opt_inet6.h opt_compat.h opt_posix.h vnode_if.h \
	device_if.h bus_if.h assym.s

# XXX: for assym.s
SRCS+=  opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h
.if ${MACHINE_ARCH} == "i386"
SRCS+=	opt_apic.h
.endif

OBJS=	linux${SFX}_locore.o linux${SFX}_support.o

.if ${MACHINE_ARCH} == "i386"
SRCS+=	linux_ptrace.c imgact_linux.c opt_cpu.h
.endif

EXPORT_SYMS=
EXPORT_SYMS+=	linux_emul_path
EXPORT_SYMS+=	linux_get_osname
EXPORT_SYMS+=	linux_get_osrelease
EXPORT_SYMS+=	linux_ifname
EXPORT_SYMS+=	linux_ioctl_register_handler
EXPORT_SYMS+=	linux_ioctl_unregister_handler

CLEANFILES=	linux${SFX}_assym.h linux${SFX}_genassym.o

linux${SFX}_assym.h: linux${SFX}_genassym.o
.if exists(@@)
linux${SFX}_assym.h: @@/kern/genassym.sh
.endif
	sh @@/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET}

linux${SFX}_locore.o: linux${SFX}_locore.s linux${SFX}_assym.h
	${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
	    ${.IMPSRC} -o ${.TARGET}

linux${SFX}_support.o: linux${SFX}_support.s assym.s linux${SFX}_assym.h
	${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
	    ${.IMPSRC} -o ${.TARGET}

linux${SFX}_genassym.o: linux${SFX}_genassym.c linux.h @@ machine
	${CC} -c ${CFLAGS:N-fno-common} ${.IMPSRC}

.if !defined(KERNBUILDDIR)
opt_inet6.h:
	echo "#define INET6 1" > ${.TARGET}
.if defined(KTR)
CFLAGS+=	-DKTR
.endif
.endif

.include <bsd.kmod.mk>
@


1.87
log
@SVN rev 235078 on 2012-05-06 11:41:00Z by uqs

Fix make depend
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.86
log
@SVN rev 232263 on 2012-02-28 18:30:18Z by dim

Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang	(disables -Wformat and friends)
- CLANG_NO_IAS		(disables integrated assembler)
- CLANG_OPT_SMALL	(adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp

MFC after:	2 weeks
@
text
@d16 2
a17 2
	opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \
	device_if.h bus_if.h assym.s
@


1.85
log
@SVN rev 218893 on 2011-02-20 19:33:47Z by dim

Upgrade our copy of llvm/clang to r126079, from upstream's trunk.

This contains many improvements, primarily better C++ support, an
integrated assembler for x86 and support for -pg.
@
text
@a7 5
.if ${CC:T:Mclang} == "clang"
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS+=	${.IMPSRC:T:Mlinux32_locore.s:C/^.+$/-no-integrated-as/}
.endif

d67 4
@


1.85.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.85.2.2
log
@SVN rev 232930 on 2012-03-13 18:39:57Z by dim

MFC r232263:

Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang	(disables -Wformat and friends)
- CLANG_NO_IAS		(disables integrated assembler)
- CLANG_OPT_SMALL	(adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp
@
text
@d8 5
a71 4

# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.linux32_locore.s=	${CLANG_NO_IAS}
CFLAGS+=			${CFLAGS.${.IMPSRC:T}}
@


1.85.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/linux/Makefile 232930 2012-03-13 18:39:57Z dim $
@


1.85.2.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/246290
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/modules/linux/Makefile 246290 2013-02-03 18:14:37Z dchagin $
d16 2
a17 2
	opt_inet6.h opt_compat.h opt_kdtrace.h opt_posix.h opt_usb.h \
	vnode_if.h device_if.h bus_if.h assym.s
@


1.85.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.85.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/modules/linux/Makefile 232930 2012-03-13 18:39:57Z dim $
@


1.85.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.85.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/modules/linux/Makefile 218893 2011-02-20 19:33:47Z dim $
@


1.84
log
@SVN rev 218616 on 2011-02-12 18:17:12Z by dchagin

Move linux_clone(), linux_fork(), linux_vfork() to a MI path.
@
text
@d8 5
@


1.83
log
@SVN rev 211690 on 2010-08-23 06:13:29Z by imp

MFtbemd:

Use MACHINE_CPUARCH in preference to MACHINE_ARCH.  The former is the
source code location of the machine, the latter the binary output.  In
general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless
we're tesitng for a specific target.  The isn't even moot for
i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86,
although a specific cleanup for that likely would be needed...
@
text
@d11 1
a11 1
SRCS=	linux${SFX}_dummy.c linux_emul.c linux_file.c \
@


1.82
log
@SVN rev 208486 on 2010-05-24 07:04:00Z by wkoszek

Bring USB fixes for linux(4).

Intention of this commit is to let us take a full advantage
of libusb(8) ported to Linux. This decreases a possibility of getting
any collisions within ioctl() "command" space, especially with
relation to  LINUX_SNDCTL_SEQ... stuff.

Basically, we provide commands, that will be mapped in the kernel
to correct ones and forward those to the USB layer. Port enabling
functionality brought with this patch is here:

	http://www.freebsd.org/cgi/query-pr.cgi?pr=146895

Bump __FreeBSD_version to catch, since which version installing a
port makes sense.

This patch should bring no regressions. So far, only i386 is tested.

Tested by:	thompsa@@
Reviewed by:	thompsa@@
OKed by:	netchild@@
@
text
@d3 1
a3 1
.if ${MACHINE_ARCH} == "amd64"
d8 1
a8 1
.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux${SFX}
d21 1
a21 1
.if ${MACHINE_ARCH} == "i386"
d27 1
a27 1
.if ${MACHINE_ARCH} == "i386"
@


1.81
log
@SVN rev 205014 on 2010-03-11 14:49:06Z by nwhitehorn

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

Reviewed by:	kib, jhb
@
text
@d16 1
a16 1
	opt_inet6.h opt_compat.h opt_posix.h vnode_if.h \
@


1.80
log
@SVN rev 193744 on 2009-06-08 19:57:35Z by bz

After r193232 rt_tables in vnet.h are no longer indirectly dependent on
the ROUTETABLES kernel option thus there is no need to include opt_route.h
anymore in all consumers of vnet.h and no longer depend on it for module
builds.

Remove the hidden include in flowtable.h as well and leave the two
explicit #includes in ip_input.c and ip_output.c.
@
text
@d5 1
a5 1
CFLAGS+=-DCOMPAT_IA32 -DCOMPAT_LINUX32
@


1.80.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.80.2.2
log
@SVN rev 206336 on 2010-04-07 02:24:41Z by nwhitehorn

MFC r205014,205015:

Provide groundwork for 32-bit binary compatibility on non-x86 platforms,
for upcoming 64-bit PowerPC and MIPS support. This renames the COMPAT_IA32
option to COMPAT_FREEBSD32, removes some IA32-specific code from MI parts
of the kernel and enhances the freebsd32 compatibility code to support
big-endian platforms.

This MFC is required for MFCs of later changes to the freebsd32
compatibility from HEAD.

Requested by:	kib
@
text
@d5 1
a5 1
CFLAGS+=-DCOMPAT_FREEBSD32 -DCOMPAT_LINUX32
@


1.80.2.3
log
@SVN rev 219193 on 2011-03-02 19:36:06Z by dchagin

MFC r218616:
Move linux_clone(), linux_fork(), linux_vfork() to a MI path.
@
text
@d11 1
a11 1
SRCS=	linux_fork.c linux${SFX}_dummy.c linux_emul.c linux_file.c \
@


1.80.2.4
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/modules/linux/Makefile 219193 2011-03-02 19:36:06Z dchagin $
@


1.80.2.3.2.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.80.2.3.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/modules/linux/Makefile 219193 2011-03-02 19:36:06Z dchagin $
@


1.80.2.2.4.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.80.2.2.2.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.80.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.79
log
@SVN rev 193588 on 2009-06-06 17:01:44Z by rwatson

Remove opt_mac.h generation for various kernel modules that no longer
require it.

Submitted by:	pjd
@
text
@d16 1
a16 1
	opt_inet6.h opt_route.h opt_compat.h opt_posix.h vnode_if.h \
@


1.78
log
@SVN rev 192855 on 2009-05-26 20:57:19Z by des

Move opt_apic.h closer to the "XXX: for assym.s" comment.

Suggested by:	jhb
MFC after:	1 week
@
text
@d16 1
a16 1
	opt_inet6.h opt_route.h opt_mac.h opt_compat.h opt_posix.h vnode_if.h \
@


1.77
log
@SVN rev 192852 on 2009-05-26 20:22:03Z by des

opt_apic.h is i386-only.

MFC after:	1 week
@
text
@d21 3
d28 1
a28 1
SRCS+=	linux_ptrace.c imgact_linux.c opt_apic.h opt_cpu.h
@


1.76
log
@SVN rev 191877 on 2009-05-07 10:01:05Z by dchagin

Add preliminary KTR(9) support to the linux emulation layer.

Approved by:	kib (mentor)
MFC after:	1 month
@
text
@d20 1
a20 1
SRCS+=  opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h opt_hwpmc_hooks.h
d25 1
a25 1
SRCS+=	linux_ptrace.c imgact_linux.c opt_cpu.h
@


1.75
log
@SVN rev 188516 on 2009-02-12 14:44:15Z by n_hibma

Fix a few problems related to building modules in /sys/modules (not
checked whether this applies to builds in /sys/*/compile/* as well):

- Create empty opt_*.h files were missing
- Hook up svr4 to the build. It compiles fine here, so no reason to
  disconnect it in the Makefile. were missing
  - Hook up svr4 to the build. It compiles fine here, so no reason to
    disconnect it in the Makefile.
@
text
@d58 3
@


1.74
log
@SVN rev 185571 on 2008-12-02 21:37:28Z by bz

Rather than using hidden includes (with cicular dependencies),
directly include only the header files needed. This reduces the
unneeded spamming of various headers into lots of files.

For now, this leaves us with very few modules including vnet.h
and thus needing to depend on opt_route.h.

Reviewed by:	brooks, gnn, des, zec, imp
Sponsored by:	The FreeBSD Foundation
@
text
@d20 1
a20 1
SRCS+=  opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h
@


1.73
log
@SVN rev 182668 on 2008-09-01 23:59:00Z by imp

Per email to arch@@ a little while ago (that was greeted with silence),
prefer the more common > ${.TARGET} over > opt_foo.h in modules
makefiles.
@
text
@d16 1
a16 1
	opt_inet6.h opt_mac.h opt_compat.h opt_posix.h vnode_if.h \
@


1.72
log
@Fix the dependency for the linux_support.s, explicitely add linux_assym.h.

Reported by:	rwatson
In collaboration with:	rdivacky
Sponsored by:	Google SoC 2007
@
text
@d57 1
a57 1
	echo "#define INET6 1" > opt_inet6.h
@


1.72.2.1
log
@SVN rev 192806 on 2009-05-26 13:37:05Z by dchagin

Merge r191877 from HEAD to stable/7:

Add preliminary KTR(9) support to the linux emulation layer.

Approved by:	kib (mentor)
@
text
@a57 3
.if defined(KTR)
CFLAGS+=	-DKTR
.endif
@


1.72.2.2
log
@SVN rev 194261 on 2009-06-15 20:12:27Z by n_hibma

Add opt_hwpmc_hooks.h to fix building individual modules from
/sys/modules.
@
text
@d20 1
a20 1
SRCS+=  opt_kstack_pages.h opt_nfs.h opt_apic.h opt_compat.h opt_hwpmc_hooks.h
@


1.72.2.3
log
@SVN rev 194365 on 2009-06-17 14:45:58Z by des

merge r192852, r192855: opt_apic.h is only used on i386.
@
text
@d20 1
a20 4
SRCS+=  opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h
.if ${MACHINE_ARCH} == "i386"
SRCS+=	opt_apic.h
.endif
@


1.72.2.4
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/modules/linux/Makefile 194365 2009-06-17 14:45:58Z des $
@


1.72.2.3.4.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.72.2.3.4.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/modules/linux/Makefile 194365 2009-06-17 14:45:58Z des $
@


1.72.2.3.2.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.72.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.72.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.71
log
@Move futex support code from <arch>/support.s into linux compat directory.
Implement all futex atomic operations in assembler to not depend on the
fuword() that does not allow to distinguish between -1 and failure return.
Correctly return 0 from atomic operations on success.

In collaboration with:	rdivacky
Tested by:	Scot Hetzel <swhetzel gmail com>, Milos Vyletel <mvyletel mzm cz>
Sponsored by:	Google SoC 2007
@
text
@d48 1
a48 1
linux${SFX}_support.o: linux${SFX}_support.s assym.s
@


1.70
log
@Backout the linux aio stuff. Several problems where identified and the
dynamic nature (if no native aio code is available, the linux part
returns ENOSYS because of missing requisites) should be solved differently
than it is.

All this will be done in P4.

Not included in this commit is a backout of the changes to the native aio
code (removing static in some places). Those changes (and some more) will
also be needed when the reworked linux aio stuff will reenter the tree.

Requested by:	rwatson
Discussed with:	rwatson
@
text
@d17 6
a22 2
	device_if.h bus_if.h
OBJS=	linux${SFX}_locore.o
d48 4
@


1.69
log
@MFP4 (with some minor changes):

Implement the linux_io_* syscalls (AIO). They are only enabled if the native
AIO code is available (either compiled in to the kernel or as a module) at
the time the functions are used. If the AIO stuff is not available there
will be a ENOSYS.

From the submitter:
---snip---
DESIGN NOTES:

1. Linux permits a process to own multiple AIO queues (distinguished by
   "context"), but FreeBSD creates only one single AIO queue per process.
   My code maintains a request queue (STAILQ of queue(3)) per "context",
   and throws all AIO requests of all contexts owned by a process into
   the single FreeBSD per-process AIO queue.

   When the process calls io_destroy(2), io_getevents(2), io_submit(2) and
   io_cancel(2), my code can pick out requests owned by the specified context
   from the single FreeBSD per-process AIO queue according to the per-context
   request queues maintained by my code.

2. The request queue maintained by my code stores contrast information between
   Linux IO control blocks (struct linux_iocb) and FreeBSD IO control blocks
   (struct aiocb). FreeBSD IO control block actually exists in userland memory
   space, required by FreeBSD native aio_XXXXXX(2).

3. It is quite troubling that the function io_getevents() of libaio-0.3.105
   needs to use Linux-specific "struct aio_ring", which is a partial mirror
   of context in user space. I would rather take the address of context in
   kernel as the context ID, but the io_getevents() of libaio forces me to
   take the address of the "ring" in user space as the context ID.

   To my surprise, one comment line in the file "io_getevents.c" of
   libaio-0.3.105 reads:

             Ben will hate me for this

REFERENCE:

1. Linux kernel source code:   http://www.kernel.org/pub/linux/kernel/v2.6/
   (include/linux/aio_abi.h, fs/aio.c)

2. Linux manual pages:         http://www.kernel.org/pub/linux/docs/manpages/
   (io_setup(2), io_destroy(2), io_getevents(2), io_submit(2), io_cancel(2))

3. Linux Scalability Effort:   http://lse.sourceforge.net/io/aio.html
   The design notes:           http://lse.sourceforge.net/io/aionotes.txt

4. The package libaio, both source and binary:
       http://rpmfind.net/linux/rpm2html/search.php?query=libaio
   Simple transparent interface to Linux AIO system calls.

5. Libaio-oracle:              http://oss.oracle.com/projects/libaio-oracle/
   POSIX AIO implementation based on Linux AIO system calls (depending on
   libaio).
---snip---

Submitted by:	Li, Xiao <intron@@intron.ac>
@
text
@d11 1
a11 1
SRCS=	linux_aio.c linux${SFX}_dummy.c linux_emul.c linux_file.c \
@


1.68
log
@- Add the new files to the linux module.
- Prepare the modules for build on amd64, but don't build them there as
  part of the kernel build yet. The code for the missing symbols on amd64
  isn't committed and it may be solved differently.

Sponsored by:	Google SoC 2006
Submitted by:	rdivacky
@
text
@d11 7
a17 5
SRCS=	linux${SFX}_dummy.c linux_emul.c linux_file.c linux_futex.c linux_getcwd.c linux_ioctl.c \
	linux_ipc.c linux${SFX}_machdep.c linux_mib.c linux_misc.c linux_signal.c \
	linux_socket.c linux_stats.c linux_sysctl.c linux${SFX}_sysent.c linux${SFX}_sysvec.c \
	linux_uid16.c linux_util.c linux_time.c opt_inet6.h opt_mac.h opt_compat.h opt_posix.h \
	vnode_if.h device_if.h bus_if.h
@


1.67
log
@Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
Add back in a scheme to emulate old type major/minor numbers via hooks into
stat, linprocfs to return major/minors that Linux app's expect.  Currently
only /dev/null is always registered.  Drivers can register via the Linux
type shim similar to the ioctl shim but by using
linux_device_register_handler/linux_device_unregister_handler functions.
The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

Linprocfs uses this to display the major number of the driver.  The
soon to be available linsysfs will use it to fill in the driver name.
Linux_stat uses it to translate the major/minor into Linux type values.

Note major numbers are dynamically assigned via passing in a -1 for
the major number so we don't need to keep track of them.

This is somewhat needed due to us switching to our devfs.  MegaCli
will not run until I add in the linsysfs and mfi Linux compat changes.

Sponsored by:	IronPort Systems
@
text
@d3 6
a8 1
.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
d11 4
a14 4
SRCS=	linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
	linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \
	linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \
	linux_util.c opt_inet6.h opt_mac.h \
d16 1
a16 1
OBJS=	linux_locore.o
d19 1
a19 1
SRCS+=	linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h
d30 1
a30 1
CLEANFILES=	linux_assym.h linux_genassym.o
d32 1
a32 1
linux_assym.h: linux_genassym.o
d34 1
a34 1
linux_assym.h: @@/kern/genassym.sh
d36 1
a36 1
	sh @@/kern/genassym.sh linux_genassym.o > ${.TARGET}
d38 1
a38 1
linux_locore.o: linux_locore.s linux_assym.h
d42 1
a42 1
linux_genassym.o: linux_genassym.c linux.h @@ machine
@


1.66
log
@Get rid of the need of COMPAT_43 in the linuxolator.

Submitted by:	Divacky Roman <xdivac02@@stud.fit.vutbr.cz>
Obtained from:	DragonFly (some parts)
@
text
@d10 1
a10 1
	vnode_if.h
@


1.65
log
@opt_vmpage.h is no longer needed here because it is not included by
vm_page.h.
@
text
@d9 1
a9 1
	linux_util.c opt_compat.h opt_inet6.h opt_mac.h \
a40 3
opt_compat.h:
	echo "#define COMPAT_43 1" > opt_compat.h

@


1.64
log
@Let modules use the kernel's opt_*.h files if built along with
the kernel by wrapping all targets for fake opt_*.h files in
.if defined(KERNBUILDDIR).  Thus, such fake files won't be
created at all if modules are built with the kernel.

Some modules undergo cleanup like removing unused or unneeded
options or .h files, without which they wouldn't build this way
or the other.

Reviewed by:	ru
Tested by:	no binary changes in modules built alone
Tested on:	i386 sparc64 amd64
@
text
@d10 1
a10 1
	opt_vmpage.h vnode_if.h
@


1.63
log
@Move MAINTAINER documentation to MAINTAINERS
@
text
@d40 1
d46 1
@


1.63.2.1
log
@MFC:
Avoid creating (and subsequently using) fake opt_*.h files
when the modules are built with the kernel and hence actual
opt_*.h files are available in ${KERNBUILDDIR}.  Fix a few
small bugs that would prevent this from working.

At last the build options of the modules become consistent
with those of the kernel unless the MODULES_WITH_WORLD way
still is used.

Approved by:	re (kensmith, scottl)
Requested by:	ru
Tested on:	amd64 i386 sparc64
Tested by:	md5
@
text
@a39 1
.if !defined(KERNBUILDDIR)
a44 1
.endif
@


1.63.2.2
log
@MFC the enhancements to the Linux emulation layer so the MegaRAID SAS
management tools can work.  This is not totally connected to the build
yet.  The mfi(4) change have not been MFC'ed yet.  This will be done
shortly.  I'm trying to do this in chunks so I don't totally break
the build on a missed commit.  This has passed make universe a while
ago:
  Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.
  Add back in a scheme to emulate old type major/minor numbers via hooks into
  stat, linprocfs to return major/minors that Linux app's expect.  Currently
  only /dev/null is always registered.  Drivers can register via the Linux
  type shim similar to the ioctl shim but by using
  linux_device_register_handler/linux_device_unregister_handler functions.
  The structure is:

    struct linux_device_handler {
        char    *bsd_driver_name;
        char    *linux_driver_name;
        char    *bsd_device_name;
        char    *linux_device_name;
        int     linux_major;
        int     linux_minor;
        int     linux_char_device;
    };

  Linprocfs uses this to display the major number of the driver.  The
  soon to be available linsysfs will use it to fill in the driver name.
  Linux_stat uses it to translate the major/minor into Linux type values.

  Note major numbers are dynamically assigned via passing in a -1 for
  the major number so we don't need to keep track of them.

  This is somewhat needed due to us switching to our devfs.
@
text
@d10 1
a10 1
	opt_vmpage.h vnode_if.h device_if.h bus_if.h
@


1.63.2.3
log
@MFC:
 - sync linuxulator:
   * add syscalls:
     + stat            (i386, amd64)
     + iopl            (i386, amd64)
     + mprotect        (i386)
     + rt_sigpending   (i386)
     + rt_sigtimedwait (i386)
     + statfs64        (i386, amd64)
     + utimes          (i386, amd64)
     + settimeofday    (amd64)
     + clock_*         (i386, amd64)
   * de-COMPAT_43-ify:
     + sethostname
     + lstat
     + ftruncate
     + nanosleep (i386)
   * add more dummy syscalls so that we know what is needed

Tested by:	bsam (on i386/amd64 with LTP 20070630)
@
text
@d9 1
a9 1
	linux_time.c linux_util.c opt_compat.h opt_inet6.h opt_mac.h \
@


1.63.2.4
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/modules/linux/Makefile 172004 2007-08-29 15:04:26Z netchild $
@


1.63.2.3.4.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.62
log
@o Remove @@- from the ln and change it to a -sf.  This was bogus, and
  regocnized as such at the time.  Now that the other bogons in the
  tree have been fixed, we can remove this ugly kludge.
o Remove stale/bogus opt_foo.h files.  These are left over from
  by-gone resources.  And they point to the need, yet again, to
  improve the build system so meta information is only in one place.

Submitted by: ru
Reviewed by: bde
Approved by: re@@ (jhb)
@
text
@a2 2
MAINTAINER=	emulation@@FreeBSD.org

@


1.62.4.1
log
@MFC: keep the maintainers consistent with HEAD.
@
text
@d3 2
@


1.61
log
@Add IPv6 support for Linuxlator.

Reviewed by:	dwmalone
MFC after:	10 days
@
text
@d11 1
a11 1
	linux_util.c opt_compat.h opt_inet6.h opt_linux.h opt_mac.h \
@


1.60
log
@opt_kstack_pages.h is not needed anymore.  It would have been a Bad Thing
if it had been different to the running kernel.
@
text
@d11 2
a12 2
	linux_util.c opt_compat.h opt_linux.h opt_mac.h opt_vmpage.h \
	vnode_if.h
d44 3
@


1.59
log
@Unbreak the modules build:
- add dependencies on opt_cpu.h and opt_kstack_pages.h to the linux module
  Makefile in the i386 case. The latter is needed by an i386-only file, the
  former by the i386 implementation of linux_sysvec.c (opt_cpu.h is used for
  architecture-dependent options, so I added it only for i386, although this
  file is also generated for the alpha).
- add a dependency on opt_kstack_pages.h to the pecoff module Makefile.
@
text
@d16 1
a16 2
SRCS+=	linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h \
	opt_kstack_pages.h
@


1.58
log
@Introduce support for Mandatory Access Control and extensible
kernel access control.

Invoke appropriate MAC entry points for a number of VFS-related
operations in the Linux ABI module.  In particular, handle uselib
in a manner similar to open() (more work is probably needed here),
as well as handle statfs(), and linux readdir()-like calls.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
@
text
@d16 2
a17 1
SRCS+=	linux_ptrace.c linux_uid16.c imgact_linux.c
@


1.57
log
@Hook up the new linux_ptrace implementation.

PR: 33299
Submitted by: Alexander N. Kabaev <ak03@@gte.com>
@
text
@d11 2
a12 1
	linux_util.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
@


1.56
log
@(Belatedly) add the required EXPORT_SYMS.  I'm not sure the list is complete,
but at least linprocfs works (I haven't had the opportunity to test other
stuff that depends on the linux module, like aac or tdfx)
@
text
@d15 1
a15 1
SRCS+=	linux_uid16.c imgact_linux.c
@


1.55
log
@genassym depends on the presence of common variables, disable the use
of -fno-common in this case.
@
text
@d18 8
@


1.54
log
@Pass maintainership over to emulation@@FreeBSD.org. It has been fun,
but time and other interests is making it hard. Open the door for
new blood and fresh tactics now that the Linuxulator has had its
facelift.

Thanks to all who contributed during my tour of duty!
@
text
@d31 1
a31 1
	${CC} -c ${CFLAGS} ${.IMPSRC}
@


1.53
log
@Round of cleanups and enhancements. These include (in random order):

o  Introduce private types for use in linux syscalls for two reasons:
   1. establish type independence for ease in porting and,
   2. provide a visual queue as to which syscalls have proper
      prototypes to further cleanup the i386/alpha split.
   Linuxulator types are prefixed by 'l_'. void and char have not
   been "virtualized".

o  Provide dummy functions for all syscalls and remove dummy functions
   or implementations of truely obsolete syscalls.

o  Sanitize the shm*, sem* and msg* syscalls.

o  Make a first attempt to implement the linux_sysctl syscall. At this
   time it only returns one MIB (KERN_VERSION), but most importantly,
   it tells us when we need to add additional sysctls :-)

o  Bump the kenel version up to 2.4.2 (this is not the same as the
   KERN_VERSION MIB, BTW).

o  Implement new syscalls, of which most are specific to i386. Our
   syscall table is now up to date with Linux 2.4.2. Some highlights:
   -  Implement the 32-bit uid_t and gid_t bases syscalls.
   -  Implement a couple of 64-bit file size/offset bases syscalls.

o  Fix or improve numerous syscalls and prototypes.

o  Reduce style(9) violations while I'm here. Especially indentation
   inconsistencies within the same file are addressed. Re-indenting
   did not obfuscate actual changes to the extend that it could not
   be combined.

NOTE: I spend some time testing these changes and found that if there
      were regressions, they were not caused by these changes AFAICT.
      It was observed that installing a RH 7.1 runtime environment
      did make matters worse. Hangs and/or reboots have been observed
      with and without these changes, so when it failed to make life
      better in cases it doesn't look like it made it worse.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.52 2001/08/29 19:05:27 gallatin Exp $
d3 1
a3 1
MAINTAINER=	marcel@@FreeBSD.org
@


1.52
log
@Fix linux_getcwd() so that if the cwd isn't cached (__getcwd() fails),
the cwd is looked up inside the kernel. The native getcwd() in libc
handles this in userland if __getcwd() fails.

Obtained from: NetBSD via OpenBSD
Tested by: Chris Casey <chriss@@phys.ksu.edu>, Markus Holmberg <markush@@acc.umu.se>
Reviewed by: Darrell Anderson <anderson@@cs.duke.edu>
PR: kern/24315
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.51 2001/02/04 10:52:24 peter Exp $
d8 4
a11 4
SRCS=	linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c linux_machdep.c \
	linux_misc.c linux_signal.c linux_socket.c linux_stats.c linux_mib.c \
	linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
	opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
d15 1
a15 1
SRCS+=	imgact_linux.c
@


1.51
log
@Zap obsolete (died with LKM) EXPORT_SYMS variable
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.50 2001/01/07 03:10:15 peter Exp $
d8 2
a9 2
SRCS=	linux_file.c linux_ioctl.c linux_ipc.c linux_machdep.c linux_misc.c \
	linux_signal.c linux_socket.c linux_stats.c linux_mib.c \
@


1.50
log
@It is unlikely that we'll be supporting old-style ZMAGIC linux a.out
binaries on anything but i386.. (ia64, sparc64, etc)  Invert the .if
so that it is inclusive of i386 platforms rather than excluding just
the alpha.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.49 2001/01/06 13:59:54 obrien Exp $
a17 1
EXPORT_SYMS=	_linux_mod
@


1.49
log
@Use a consistent style and one much closer to the rest of /usr/src
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.48 2000/12/03 01:30:31 marcel Exp $
d14 1
a14 1
.if ${MACHINE_ARCH} != "alpha"
@


1.48
log
@Don't auto-generate the syscalls.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.47 2000/12/02 23:47:41 marcel Exp $
d3 1
a3 1
.PATH:	${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
d5 1
a5 1
MAINTAINER=	marcel@@FreeBSD.org
d15 1
a15 1
SRCS+=  imgact_linux.c
d18 2
a19 2
EXPORT_SYMS=_linux_mod
CLEANFILES= linux_assym.h linux_genassym.o
d21 1
a21 1
linux_assym.h:	linux_genassym.o
d23 1
a23 1
linux_assym.h:	@@/kern/genassym.sh
d27 1
a27 1
linux_locore.o:	linux_locore.s linux_assym.h
d29 1
a29 1
		${.IMPSRC} -o ${.TARGET}
d31 1
a31 1
linux_genassym.o:	linux_genassym.c linux.h @@ machine
@


1.47
log
@Fix dependency for auto-generated files. This commit is
for archiving purposes only; auto-generation is going to
be reverted.

requested by: obrien
submitted: gallatin
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.46 2000/11/05 03:10:45 marcel Exp $
d10 1
a10 1
	linux_dummy.c linux_sysvec.c linux_util.c \
d31 1
a31 1
linux_genassym.o:	linux_genassym.c linux.h @@ machine ${GENSYSCALL}
a35 14

GENSYSCALL=	linux_sysent.c linux_syscall.h linux_proto.h
SRCS+= ${GENSYSCALL}
CLEANFILES+= ${GENSYSCALL}

.ORDER: ${GENSYSCALL}
${GENSYSCALL}: @@/kern/makesyscalls.sh \
	    @@/${MACHINE_ARCH}/linux/syscalls.master \
		@@/${MACHINE_ARCH}/linux/syscalls.conf
	sh @@/kern/makesyscalls.sh @@/${MACHINE_ARCH}/linux/syscalls.master \
		@@/${MACHINE_ARCH}/linux/syscalls.conf
	sed -e 's|${MACHINE_ARCH}/linux/linux_proto\.h|linux_proto.h|g' \
	    linux_sysent.c > linux_sysent.c.fixup
	    mv -f linux_sysent.c.fixup linux_sysent.c
@


1.46
log
@Fix breakage for parallel builds.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.45 2000/11/02 13:48:53 sheldonh Exp $
d31 1
a31 1
linux_genassym.o:	linux_genassym.c linux.h @@ machine
@


1.45
log
@Retire linux(8).  Using shell scripts to load kernel loadable modules is
out of fashion.  This particular case, unlike joy(8) and friends which
are just plain silly, did more than just load a kernel loadable module.
However, /etc/rc and the linux_base port were adjusted a while back to
cope with the absence of this script.

The only outstanding reason to hang on to it would have been for the
linux(8) manual page, which clued folks into the existence of the
Linuxulator.  A new linux(4) was introduced a while back.  It does
a much better job.

This script just isn't useful any more.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.44 2000/11/01 23:17:30 gallatin Exp $
d41 1
@


1.44
log
@Support for the linux ipc syscalls on the alpha, where each one has
its own syscall rather than going through a demux function like
linux_ipc() on i386
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.43 2000/11/01 09:23:12 obrien Exp $
a48 6

.if exists(${DESTDIR}/usr/bin)
afterinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux
.endif
@


1.43
log
@Allow the building of the syscall bits at compile time.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.42 2000/10/08 16:53:05 obrien Exp $
d8 1
a8 1
SRCS=	linux_file.c linux_ioctl.c linux_machdep.c linux_misc.c \
d15 1
a15 1
SRCS+=  imgact_linux.c linux_ipc.c
@


1.42
log
@Don't install manpages.
They are being moved elsewhere, and they are causing problems being here.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.41 2000/10/04 07:20:24 obrien Exp $
d10 1
a10 1
	linux_dummy.c linux_sysent.c linux_sysvec.c linux_util.c \
d36 13
@


1.41
log
@Only install secondary components if the destination directory exists.
This may be a WIP, but `make release' needs it sooner than later.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.40 2000/09/06 20:21:55 obrien Exp $
a12 3
.if exists(${DESTDIR}/usr/share/man/man8)
MAN8=	linux.8
.endif
@


1.40
log
@Since AlphaLinux is the weirdest Linux of all, probably best to do the
logic this way.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.39 2000/09/06 20:21:15 obrien Exp $
d13 1
d15 1
d40 1
d44 1
@


1.39
log
@Two sys/compat/linux sources aren't applicable on the Alpha at this time.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.38 2000/08/22 06:02:01 marcel Exp $
d15 1
a15 1
.if ${MACHINE_ARCH} == "i386"
@


1.38
log
@Connect the new sources in /sys/compat/linux and the new file
in /sys/i386/linux.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.37 2000/06/03 07:40:19 bde Exp $
d9 1
a9 1
	linux_signal.c linux_ipc.c linux_socket.c linux_stats.c linux_mib.c \
d11 1
a11 1
	imgact_linux.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
d14 4
@


1.37
log
@Use the genassym script here too.  The linux and svr4 modules were broken.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.36 2000/05/27 01:13:52 peter Exp $
d3 1
a3 1
.PATH:	${.CURDIR}/../../${MACHINE_ARCH}/linux
d8 2
a9 2
SRCS=	linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
	linux_ipc.c linux_socket.c linux_stats.c linux_mib.c \
a14 1
# CFLAGS+=	-DDEBUG
@


1.36
log
@Use .include <bsd.kmod.mk> to get to ../../*/conf/kmod.mk instead of
encoding the relative path.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.35 2000/05/04 12:07:37 peter Exp $
d20 4
a23 1
	genassym ${.ALLSRC} > ${.TARGET}
@


1.35
log
@Pull in sys/conf/kmod.mk, rather than /usr/share/mk/bsd.kmod.mk.
This means that the kernel can be totally self contained now and is not
dependent on the last buildworld to update /usr/share/mk.  This might
also make it easier to build 5.x kernels on 4.0 boxes etc, assuming
gensetdefs and config(8) are updated.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.34 2000/01/09 10:04:53 bde Exp $
d36 1
a36 1
.include "${.CURDIR}/../../conf/kmod.mk"
@


1.34
log
@Compile linux_genassym.c with ordinary ${CFLAGS}.  The (small) need for
-U_KERNEL became negative when all all the genassym.c's were converted
to be cross-built.

Use "genassym ... > ${.TARGET}", not "genassym -o $@@ ...", so that
genassym(1) doesn't need to support -o.

Removed duplicate -D_KERNEL from flags for compiling linux_locore.s.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.33 1999/12/29 04:54:50 peter Exp $
d36 1
a36 1
.include <bsd.kmod.mk>
@


1.34.2.1
log
@MFC: rev 1.35-36(use sys/conf/kmod.mk to make /sys self contained)
     rev 1.37 (use getassym script)
@
text
@d1 1
a1 1
# $FreeBSD$
d20 1
a20 4
.if exists(@@)
linux_assym.h:	@@/kern/genassym.sh
.endif
	sh @@/kern/genassym.sh linux_genassym.o > ${.TARGET}
@


1.34.2.2
log
@Not all source files are applicable for the AlphaLinux version.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.34.2.1 2000/07/07 01:29:00 obrien Exp $
d9 1
a9 1
	linux_socket.c linux_stats.c linux_mib.c \
d11 1
a11 1
	opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
a13 4

.if ${MACHINE_ARCH} != "alpha"
SRCS+=  imgact_linux.c linux_ipc.c
.endif
@


1.34.2.3
log
@MFC: MI/MD split and allow the building of the syscall bits at compile time
@
text
@d1 1
a1 1
# $FreeBSD$
d3 1
a3 1
.PATH:	${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux
d8 3
a10 3
SRCS=	linux_file.c linux_ioctl.c linux_machdep.c linux_misc.c \
	linux_signal.c linux_socket.c linux_stats.c linux_mib.c \
	linux_dummy.c linux_sysvec.c linux_util.c \
a37 13

GENSYSCALL=	linux_sysent.c linux_syscall.h linux_proto.h
SRCS+= ${GENSYSCALL}
CLEANFILES+= ${GENSYSCALL}

${GENSYSCALL}: @@/kern/makesyscalls.sh \
	    @@/${MACHINE_ARCH}/linux/syscalls.master \
		@@/${MACHINE_ARCH}/linux/syscalls.conf
	sh @@/kern/makesyscalls.sh @@/${MACHINE_ARCH}/linux/syscalls.master \
		@@/${MACHINE_ARCH}/linux/syscalls.conf
	sed -e 's|${MACHINE_ARCH}/linux/linux_proto\.h|linux_proto.h|g' \
	    linux_sysent.c > linux_sysent.c.fixup
	    mv -f linux_sysent.c.fixup linux_sysent.c
@


1.34.2.4
log
@MFC rev 1.46: Fix parallel build breakage

Approved by: jkh
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.34.2.3 2000/11/01 19:35:31 obrien Exp $
a42 1
.ORDER: ${GENSYSCALL}
@


1.34.2.5
log
@MFC: enable linux ipc syscalls on alpha
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.34.2.4 2000/11/05 07:41:42 marcel Exp $
d8 1
a8 1
SRCS=	linux_file.c linux_ioctl.c linux_ipc.c linux_machdep.c linux_misc.c \
d16 1
a16 1
SRCS+=  imgact_linux.c
@


1.34.2.6
log
@MFC: MAN[1-9] -> MAN.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.34.2.5 2000/11/22 16:20:12 gallatin Exp $
d13 1
a13 1
MAN=	linux.8
@


1.34.2.7
log
@I seemed to  need to specifically include MACHINE_ARCH/linux as
an include in CFLAGS in order to compile.
@
text
@d1 1
a1 1
# $FreeBSD$
a19 1
CFLAGS += -I${.CURDIR}/../../${MACHINE_ARCH}/linux
@


1.34.2.8
log
@MFC linux_getcwd --
If the cwd isn't cached (__getcwd() fails), the cwd is looked up inside
the kernel.
@
text
@d8 4
a11 4
SRCS=	linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
	linux_machdep.c linux_misc.c linux_signal.c linux_socket.c \
	linux_stats.c linux_mib.c linux_dummy.c linux_sysvec.c  \
	linux_util.c opt_compat.h opt_linux.h opt_vmpage.h vnode_if.h
@


1.34.2.9
log
@Mega MFC: This syncs-up the Linuxulator with -current and hence
	  allows Linux_base-7 to work properly.

tested on alpha by: gallatin (thanks!)
tested on i386 by: marcel (among others probably)
@
text
@d3 2
a6 2
.PATH: ${.CURDIR}/../../compat/linux ${.CURDIR}/../../${MACHINE_ARCH}/linux

d8 3
a10 3
SRCS=	linux_dummy.c linux_file.c linux_getcwd.c linux_ioctl.c linux_ipc.c \
	linux_machdep.c linux_mib.c linux_misc.c linux_signal.c linux_socket.c \
	linux_stats.c linux_sysctl.c linux_sysent.c linux_sysvec.c \
d15 2
a16 2
.if ${MACHINE_ARCH} == "i386"
SRCS+=	linux_uid16.c imgact_linux.c
d19 4
a22 1
CLEANFILES=	linux_assym.h linux_genassym.o
d24 1
a24 1
linux_assym.h: linux_genassym.o
d26 1
a26 1
linux_assym.h: @@/kern/genassym.sh
d30 1
a30 1
linux_locore.o: linux_locore.s linux_assym.h
d32 1
a32 1
	    ${.IMPSRC} -o ${.TARGET}
d34 1
a34 1
linux_genassym.o: linux_genassym.c linux.h @@ machine
d39 14
@


1.34.2.10
log
@MFC: s/${INSTALL} -c/${INSTALL} ${COPY}/
@
text
@d38 1
a38 1
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
@


1.34.2.11
log
@MFC: Drop support for COPY.
@
text
@d38 1
a38 1
	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
@


1.34.2.12
log
@MFC: ptrace(2) for Linux binaries.
@
text
@d16 1
a16 1
SRCS+=	linux_ptrace.c linux_uid16.c imgact_linux.c opt_cpu.h
@


1.34.2.13
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/modules/linux/Makefile 108573 2003-01-02 20:41:34Z kan $
@


1.33
log
@Change #ifdef KERNEL to #ifdef _KERNEL in the public headers.  "KERNEL"
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.32 1999/12/23 19:59:47 marcel Exp $
d20 1
a20 1
	genassym -o ${.TARGET} ${.ALLSRC}
d23 1
a23 1
	${CC} -c -x assembler-with-cpp -DLOCORE -D_KERNEL ${CFLAGS} \
d27 1
a27 1
	${CC} -c ${CFLAGS} -U_KERNEL ${.IMPSRC}
@


1.32
log
@Use genassym(1) and <sys/assym.h> to generate assembler symbols.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.31 1999/11/28 18:52:56 bde Exp $
d23 1
a23 1
	${CC} -c -x assembler-with-cpp -DLOCORE -DKERNEL ${CFLAGS} \
d27 1
a27 1
	${CC} -c ${CFLAGS} -UKERNEL ${.IMPSRC}
@


1.31
log
@Removed special rules for building and cleaning device interface files
and empty options files.  The rules are now generated automatically in
bsd.kmod.mk.  Cleaned up related things ($S and ${CLEANFILES}).
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.30 1999/11/12 20:04:59 marcel Exp $
d17 1
a17 1
CLEANFILES= linux_assym.h linux_genassym linux_genassym.o
d19 2
a20 4
build-tools: linux_genassym

linux_assym.h:	linux_genassym
	./linux_genassym > linux_assym.h
a27 3

linux_genassym:	linux_genassym.o
	${CC} -static ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
@


1.30
log
@Replace 'i386' with '${MACHINE_ARCH}' in preparation of the development
of a linuxulator for Alpha.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.29 1999/09/03 07:15:38 marcel Exp $
d17 1
a17 2
CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym \
	linux_assym.h opt_compat.h opt_linux.h opt_vmpage.h
a35 3

opt_linux.h opt_vmpage.h:
	touch ${.TARGET}
@


1.29
log
@Install linux.sh in /usr/sbin and not in /usr/bin.

PR: 13545
Submitted by: Jose M. Alcaide <jose@@we.lc.ehu.es>
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.28 1999/08/28 09:04:21 marcel Exp $
d3 1
a3 1
.PATH:	${.CURDIR}/../../i386/linux
@


1.28
log
@Add MAINTAINER and remove the unused COMPAT_LINUX and VM_STACK defines.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.27 1999/08/28 00:47:24 peter Exp $
d43 1
a43 1
		${.CURDIR}/linux.sh ${DESTDIR}/usr/bin/linux
@


1.27
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d4 3
d15 1
a15 1
CFLAGS+= -DCOMPAT_LINUX -DVM_STACK #-DDEBUG
@


1.26
log
@Add sysctl variables for the Linuxulator. These reside under `compat.linux' as
discussed on current.

The following variables are defined (for now):

    osname (defaults to "Linux")
        Allow users to change the name of the OS as returned by uname(2),
        specially added for all those Linux Netscape users and statistics
        maniacs :-) We now have what we all wanted!

    osrelease (defaults to "2.2.5")
        Allow users to change the version of the OS as returned by uname(2).
        Since -current supports glibc2.1 now, change the default to 2.2.5
        (was 2.0.36).

    oss_version (defaults to 198144 [0x030600])
        This one will be used by the OSS_GETVERSION ioctl (PR 12917) which I
        can commit now that we have the MIB. The default version number is the
        lowest version possible with the current 'encoding'.

A note about imprisoned processes (see jail(2)):
  These variables are copy-on-write (as suggested by phk). This means that
  imprisoned processes will use the system wide value unless it is written/set
  by the process. From that moment on, a copy local to the prison will be
  used.

A note about the implementation:
  I choose to add a single pointer to struct prison, because I didn't like the
  idea of changing struct prison every time I come up with a new variable. As
  a side effect, the extra storage is only needed when a variable is set from
  within the prison. This also minimizes kernel bloat when the Linuxulator is
  not used; both compiled in or as a module.

Reviewed by: bde (first version only) and phk
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.25 1999/01/26 21:29:01 julian Exp $
@


1.25
log
@Compile the linux module with the same flags as the kernel.
(oops).

Submitted by:	"Richard Seaman, Jr." <dick@@tar.com>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.24 1998/11/12 00:37:39 jkh Exp $
d6 1
a6 1
	linux_ipc.c linux_socket.c linux_stats.c \
@


1.24
log
@Install scripts without .sh suffix.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.23 1998/11/11 07:04:10 peter Exp $
d12 1
a12 1
CFLAGS+= -DCOMPAT_LINUX #-DDEBUG
@


1.24.2.1
log
@MFC:  compile the module the same way we compile the kernel.
(how do we do this differently for Alpha?)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.24 1998/11/12 00:37:39 jkh Exp $
d12 1
a12 1
CFLAGS+= -DCOMPAT_LINUX -DVM_STACK #-DDEBUG
@


1.24.2.2
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.23
log
@Rename joy,ibcs2,linux to joy.sh,ibcs2.sh,linux.sh (via repo copy).
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.22 1998/11/10 19:39:58 jkh Exp $
d40 1
a40 1
		${.CURDIR}/linux.sh ${DESTDIR}/usr/bin
@


1.22
log
@We need to install the linux shell script or the lkm version will
still be in place.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.21 1998/11/05 04:39:26 peter Exp $
d40 1
a40 1
		${.CURDIR}/linux ${DESTDIR}/usr/bin
@


1.21
log
@Build linux_genassym static, this should help aout-to-elf builds
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.20 1998/11/05 04:22:52 peter Exp $
d38 3
a40 3
#afterinstall:
#	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
#		${.CURDIR}/linux ${DESTDIR}/usr/bin
@


1.20
log
@Do not overwrite the lkm versions of the install scripts for now.  linux
works but ibcs2 has a load failure and joy doesn't look like it'll work.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.19 1998/10/16 04:30:47 peter Exp $
d30 1
a30 1
	${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
@


1.19
log
@Sample initial set of kld-ified modules.  Not all have been completely
converted yet.  These are more of a starting point.  This is NOT connected
to the parent Makefile.

OK'ed by jkh (who is ever so patiently waiting)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.18 1998/07/07 02:04:20 bde Exp $
d38 3
a40 3
afterinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.CURDIR}/linux ${DESTDIR}/usr/bin
@


1.18
log
@Added a `build-tools' target for internal tools.  (linux_genassym may
not actually work for cross compiling, but that is another problem.)

Honor LDFLAGS for building internal tools.  (Tools should normally
be built static to avoid problems with picking up target shared
libraries.  bsd.kmod doesn't set -static yet, and has some problems
with `LDFLAGS=-static ...' in the environment.)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.17 1998/07/01 17:10:00 bde Exp $
d3 3
a5 3
.PATH:	${.CURDIR}/../../sys/i386/linux
KMOD=	linux_mod
SRCS=	linux.c linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
d12 1
a12 1
CFLAGS+= -DLKM -DCOMPAT_LINUX #-DDEBUG
@


1.17
log
@Fixed missing options headers.  Options that affect LKMs shouldn't
exist.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.16 1998/03/19 12:35:55 bde Exp $
d17 2
d30 1
a30 1
	${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET}
@


1.16
log
@Fixed a race to build the `@@' and `machine' symlinks early enough
for `make -jN'.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.15 1998/02/06 23:54:21 eivind Exp $
d8 1
a8 1
	imgact_linux.c opt_compat.h vnode_if.h
d15 1
a15 1
	linux_assym.h opt_compat.h
d32 3
@


1.15
log
@Back out opt_diagnostic.h changes.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.14 1998/02/04 21:56:36 eivind Exp $
d24 1
a24 1
linux_genassym.o:	linux_genassym.c linux.h
@


1.14
log
@Make the LKMs handle DIAGNOSTIC as a new-style option.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.13 1998/02/01 17:53:55 bde Exp $
d8 1
a8 1
	imgact_linux.c opt_compat.h opt_diagnostic.h vnode_if.h
d15 1
a15 1
	linux_assym.h opt_compat.h opt_diagnostic.h
a28 3

opt_diagnostic.h:
	touch opt_diagnostic.h
@


1.13
log
@Don't handle the `machine' symlink or related include paths here.
bsd.kmod.mk now handles it more generally.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.12 1997/12/16 18:45:50 eivind Exp $
d8 1
a8 1
	imgact_linux.c opt_compat.h vnode_if.h
d15 1
a15 1
	linux_assym.h opt_compat.h
d29 3
@


1.12
log
@Handle COMPAT_43 define -> option change.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.11 1997/02/22 12:48:23 peter Exp $
d12 1
a12 1
CFLAGS+= -DLKM -I. -DCOMPAT_LINUX #-DDEBUG
d14 1
a14 1
CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym machine \
a29 3
machine:
	ln -fs ${.CURDIR}/../../sys/i386/include machine

a31 2

vnode_if.h:	machine
@


1.11
log
@Revert $FreeBSD$ back to $Id$
@
text
@d1 1
a1 1
#	$Id$
d8 1
a8 1
	imgact_linux.c vnode_if.h
d12 1
a12 1
CFLAGS+= -DLKM -I. -DCOMPAT_43 -DCOMPAT_LINUX #-DDEBUG
d15 1
a15 1
	linux_assym.h
d32 3
@


1.10
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d1 1
a1 1
#	$FreeBSD$
@


1.9
log
@Add a man page for linux(8) (loads the Linux emulator kernel module).
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.8 1996/06/25 20:13:12 bde Exp $
@


1.8
log
@Fixed the `machine' link.  It pointed to the wrong place, and was created
too late to be used in all cases.  It should probably be created (early)
in bsd.kmod.mk for all LKMs.

Use cc instead of cpp | as for the same reasons as in the kernel makefile.
CFLAGS isn't split up as well as in the kernel makefile, but cc doesn't
pass compiler warning flags to cpp, so there is no need to split it.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.7 1996/03/10 08:42:31 sos Exp $
d10 1
a10 1
NOMAN=
@


1.8.2.1
log
@YAMFC:  install the linux(8) man page.

The new man page was tagged onto the RELENG_2_2 branch.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.9 1997/01/10 05:48:49 mpp Exp $
d10 1
a10 1
MAN8=	linux.8
@


1.7
log
@First attempt at FreeBSD & Linux ELF support.

Compile and link a new kernel, that will give native ELF support, and
provide the hooks for other ELF interpreters as well.

To make native ELF binaries use John Polstras elf-kit-1.0.1..
For the time being also use his ld-elf.so.1 and put it in
/usr/libexec.

The Linux emulator has been enhanced to also run ELF binaries, it
is however in its very first incarnation.
Just get some Linux ELF libs (Slackware-3.0) and put them in the
prober place (/compat/linux/...).
I've ben able to run all the Slackware-3.0 binaries I've tried
so far.
(No it won't run quake yet :)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.6 1996/03/02 20:00:35 peter Exp $
a12 1
CPPFLAGS= -I. -I${.CURDIR}/../../sys
d21 2
a22 3
	@@if [ ! -h machine ]; then ln -s ${.CURDIR}/../../i386/include machine \
	; fi
	${CPP} -DLOCORE -DKERNEL ${CPPFLAGS} ${.IMPSRC} | ${AS} ${ASFLAGS} -o ${.TARGET}
d30 5
d37 1
a37 1
	${.CURDIR}/linux ${DESTDIR}/usr/bin
@


1.6
log
@Update the linux lkm to use the new file list and build routine.
This is a bit of a kludge and needs more work.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.5 1996/01/27 23:57:06 rgrimes Exp $
d14 1
a14 1

@


1.5
log
@Add missing ${DESTDIR} to afterinstall: target.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.4 1996/01/08 05:36:17 peter Exp $
d6 4
a9 2
	linux_generic.c linux_ipc.c linux_socket.c linux_stats.c \
	linux_dummy.c linux_sysent.c imgact_linux.c vnode_if.h
d11 20
a30 2
CFLAGS+= -DLKM -I. -DCOMPAT_LINUX # -DDEBUG
CLEANFILES+= vnode_if.h vnode_if.c
@


1.4
log
@No longer generate empty opt_sysvipc.h, and no longer issue -DSYSVSHM etc
for the CFLAGS.  Now, it tracks whatever the booted kernel has rather than
being specifying what features your kernel has at lkm build time.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1996/01/06 23:10:25 ache Exp $
d14 1
a14 1
	${.CURDIR}/linux /usr/bin
@


1.3
log
@Add opt_sysvipc.h rules similar as in ibcs2 Makefile
(make fails in old case)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1995/12/29 22:10:49 sos Exp $
d5 1
a5 2
SRCS=	opt_sysvipc.h \
	linux.c linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
d9 1
a9 1
CFLAGS+= -DLKM -I. -DCOMPAT_LINUX -DSYSVSHM -DSYSVMSG # -DSYSVSEM #-DDEBUG
a14 3

opt_sysvipc.h:
	touch opt_sysvipc.h
@


1.2
log
@Added SYSVSHM define
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1995/06/25 17:29:46 sos Exp $
d5 2
a6 1
SRCS= 	linux.c linux_file.c linux_ioctl.c linux_misc.c linux_signal.c \
d16 3
@


1.1
log
@First incarnation of our Linux emulator or rather compatibility code.
This first shot only incorporaties so much functionality that DOOM
can run (the X version), signal handling is VERY weak, so is many
other things. But it meets my milestone number one (you guessed it
- running DOOM).

Uses /compat/linux as prefix for loading shared libs, so it won't
conflict with our own libs.

Kernel must be compiled with "options COMPAT_LINUX" for this to work.
@
text
@d1 1
a1 1
#	$Id$
d9 1
a9 1
CFLAGS+= -DLKM -I. -DCOMPAT_LINUX -DSYSVSHM #-DSYSVMSG -DSYSVSEM #-DDEBUG
@


1.1.2.1
log
@Add missing ${DESTDIR} to afterinstall: target. (cvs update -j1.4 -j1.5)
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1 1995/06/25 17:29:46 sos Exp $
d14 1
a14 1
	${.CURDIR}/linux ${DESTDIR}/usr/bin
@
