head	1.6;
access;
symbols
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.2
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.10
	perseant-exfatfs-base:1.5
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	thorpej-ifq:1.5.0.8
	thorpej-ifq-base:1.5
	thorpej-altq-separation:1.5.0.6
	thorpej-altq-separation-base:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.4
	netbsd-10-base:1.5
	bouyer-sunxi-drm:1.5.0.2
	bouyer-sunxi-drm-base:1.5
	netbsd-9-3-RELEASE:1.2
	thorpej-i2c-spi-conf2:1.2.0.30
	thorpej-i2c-spi-conf2-base:1.2
	thorpej-futex2:1.2.0.28
	thorpej-futex2-base:1.2
	thorpej-cfargs2:1.2.0.26
	thorpej-cfargs2-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.24
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.22
	cjep_staticlib_x-base:1.2
	thorpej-i2c-spi-conf:1.2.0.20
	thorpej-i2c-spi-conf-base:1.2
	thorpej-cfargs:1.2.0.18
	thorpej-cfargs-base:1.2
	thorpej-futex:1.2.0.16
	thorpej-futex-base:1.2
	netbsd-9-1-RELEASE:1.2
	bouyer-xenpvh-base2:1.2
	phil-wifi-20200421:1.2
	bouyer-xenpvh-base1:1.2
	phil-wifi-20200411:1.2
	bouyer-xenpvh:1.2.0.14
	bouyer-xenpvh-base:1.2
	is-mlppp:1.2.0.12
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	ad-namecache-base3:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	ad-namecache-base2:1.2
	ad-namecache-base1:1.2
	ad-namecache:1.2.0.10
	ad-namecache-base:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.8
	netbsd-9-base:1.2
	phil-wifi:1.2.0.6
	phil-wifi-20190609:1.2
	isaki-audio2:1.2.0.4
	isaki-audio2-base:1.2
	pgoyette-compat-merge-20190127:1.2.2.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat:1.2.0.2
	pgoyette-compat-0906:1.2;
locks; strict;
comment	@# @;


1.6
date	2024.07.02.20.09.30;	author riastradh;	state Exp;
branches;
next	1.5;
commitid	WFC4dFY8hAJfQigF;

1.5
date	2021.12.19.10.46.17;	author riastradh;	state Exp;
branches
	1.5.10.1;
next	1.4;
commitid	I6YSz5aJuO3tuflD;

1.4
date	2021.12.19.10.39.49;	author riastradh;	state Exp;
branches;
next	1.3;
commitid	3kFPXOyrxFRfsflD;

1.3
date	2021.12.19.00.25.13;	author riastradh;	state Exp;
branches;
next	1.2;
commitid	Ea8ulYaMFHqp3clD;

1.2
date	2018.08.27.07.54.28;	author riastradh;	state Exp;
branches
	1.2.2.1
	1.2.6.1;
next	1.1;
commitid	i1iunniekH2WqJPA;

1.1
date	2018.08.27.00.46.32;	author riastradh;	state Exp;
branches;
next	;
commitid	Gm6HxLeujv784HPA;

1.5.10.1
date	2025.08.02.05.57.32;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.2.2.1
date	2018.08.27.07.54.28;	author pgoyette;	state dead;
branches;
next	1.2.2.2;
commitid	HCi1bXD317XIK0RA;

1.2.2.2
date	2018.09.06.06.56.35;	author pgoyette;	state Exp;
branches;
next	;
commitid	HCi1bXD317XIK0RA;

1.2.6.1
date	2018.08.27.07.54.28;	author christos;	state dead;
branches;
next	1.2.6.2;
commitid	jtc8rnCzWiEEHGqB;

1.2.6.2
date	2019.06.10.22.08.30;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.6
log
@drm: Update drm2netbsd to prepare for new import.
@
text
@#!/bin/sh

#	$NetBSD: drm2netbsd,v 1.5 2021/12/19 10:46:17 riastradh Exp $
#
# $ /path/to/drm2netbsd > /path/to/files.drm.new
#
# Run from the directory that came from drivers/gpu/drm.

set -Ceu

# Location of the DRMKMS sources relative to $NETBSDSRCDIR.
drmkms_top=external/bsd/drm2/dist/drm

# config(5) flag for the DRMKMS driver.
drmkms_flag=drmkms

env CONFIG_COMPAT=y \
env CONFIG_DRM=y \
env CONFIG_DRM_BUDDY=y \
env CONFIG_DRM_EXEC=y \
env CONFIG_DRM_FBDEV_EMULATION=y \
env CONFIG_DRM_GEM_CMA_HELPER=y \
env CONFIG_DRM_GEM_DMA_HELPER=y \
env CONFIG_DRM_GEM_SHMEM_HELPER=y \
env CONFIG_DRM_KMS_HELPER=y \
env CONFIG_DRM_LEGACY=y \
env CONFIG_DRM_MIPI_DBI=y \
env CONFIG_DRM_MIPI_DSI=y \
env CONFIG_DRM_PANEL=y \
env CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y \
env CONFIG_DRM_PRIVACY_SCREEN=y \
env CONFIG_DRM_SCHED=y \
env CONFIG_DRM_SUBALLOC_HELPER=y \
env CONFIG_DRM_VM=y \
env CONFIG_DRM_VRAM_HELPER=y \
env CONFIG_OF=y \
env CONFIG_PCI=y \
make -f Makefile -V '$(drm-y)' -V '$(drm_kms_helper-y)' \
| tr ' ' '\n' \
| grep -v '^$' \
| {
	sed -e 's,\.o$,.c,'
	# Separate objects.
	echo drm_panel_orientation_quirks.c
} | sort -u \
| while read f; do
	printf 'file\t%s\t%s\n' "$drmkms_top/$f" "$drmkms_flag"
done
@


1.5
log
@One more file by hand.
@
text
@d3 1
a3 1
#	$NetBSD: drm2netbsd,v 1.4 2021/12/19 10:39:49 riastradh Exp $
d17 4
a20 2
env CONFIG_PCI=y \
env CONFIG_AGP=y \
d23 6
d30 4
d35 3
@


1.5.10.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#	$NetBSD: drm2netbsd,v 1.6 2024/07/02 20:09:30 riastradh Exp $
d17 2
a18 4
env CONFIG_COMPAT=y \
env CONFIG_DRM=y \
env CONFIG_DRM_BUDDY=y \
env CONFIG_DRM_EXEC=y \
a20 6
env CONFIG_DRM_GEM_DMA_HELPER=y \
env CONFIG_DRM_GEM_SHMEM_HELPER=y \
env CONFIG_DRM_KMS_HELPER=y \
env CONFIG_DRM_LEGACY=y \
env CONFIG_DRM_MIPI_DBI=y \
env CONFIG_DRM_MIPI_DSI=y \
a21 4
env CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y \
env CONFIG_DRM_PRIVACY_SCREEN=y \
env CONFIG_DRM_SCHED=y \
env CONFIG_DRM_SUBALLOC_HELPER=y \
a22 3
env CONFIG_DRM_VRAM_HELPER=y \
env CONFIG_OF=y \
env CONFIG_PCI=y \
@


1.4
log
@Add a couple more make variables.
@
text
@d3 1
a3 1
#	$NetBSD: drm2netbsd,v 1.3 2021/12/19 00:25:13 riastradh Exp $
d26 5
a30 2
| sed -e 's,\.o$,.c,' \
| sort -u \
@


1.3
log
@Set CONFIG_DRM_VM=1, apparently needed for nouveau now.


Author: Maya Rashish <maya@@NetBSD.org>
@
text
@d3 1
a3 1
#	$NetBSD: drm2netbsd,v 1.2 2018/08/27 07:54:28 riastradh Exp $
d20 2
@


1.2
log
@drm_fb_helper.c got lost in the merge, restore it.
@
text
@d3 1
a3 1
#	$NetBSD$
d20 1
@


1.2.6.1
log
@file drm2netbsd was added on branch phil-wifi on 2019-06-10 22:08:30 +0000
@
text
@d1 27
@


1.2.6.2
log
@Sync with HEAD
@
text
@a0 27
#!/bin/sh

#	$NetBSD: drm2netbsd,v 1.2 2018/08/27 07:54:28 riastradh Exp $
#
# $ /path/to/drm2netbsd > /path/to/files.drm.new
#
# Run from the directory that came from drivers/gpu/drm.

set -Ceu

# Location of the DRMKMS sources relative to $NETBSDSRCDIR.
drmkms_top=external/bsd/drm2/dist/drm

# config(5) flag for the DRMKMS driver.
drmkms_flag=drmkms

env CONFIG_PCI=y \
env CONFIG_AGP=y \
env CONFIG_DRM_FBDEV_EMULATION=y \
make -f Makefile -V '$(drm-y)' -V '$(drm_kms_helper-y)' \
| tr ' ' '\n' \
| grep -v '^$' \
| sed -e 's,\.o$,.c,' \
| sort -u \
| while read f; do
	printf 'file\t%s\t%s\n' "$drmkms_top/$f" "$drmkms_flag"
done
@


1.2.2.1
log
@file drm2netbsd was added on branch pgoyette-compat on 2018-09-06 06:56:35 +0000
@
text
@d1 27
@


1.2.2.2
log
@Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)
@
text
@a0 27
#!/bin/sh

#	$NetBSD: drm2netbsd,v 1.2 2018/08/27 07:54:28 riastradh Exp $
#
# $ /path/to/drm2netbsd > /path/to/files.drm.new
#
# Run from the directory that came from drivers/gpu/drm.

set -Ceu

# Location of the DRMKMS sources relative to $NETBSDSRCDIR.
drmkms_top=external/bsd/drm2/dist/drm

# config(5) flag for the DRMKMS driver.
drmkms_flag=drmkms

env CONFIG_PCI=y \
env CONFIG_AGP=y \
env CONFIG_DRM_FBDEV_EMULATION=y \
make -f Makefile -V '$(drm-y)' -V '$(drm_kms_helper-y)' \
| tr ' ' '\n' \
| grep -v '^$' \
| sed -e 's,\.o$,.c,' \
| sort -u \
| while read f; do
	printf 'file\t%s\t%s\n' "$drmkms_top/$f" "$drmkms_flag"
done
@


1.1
log
@New script to generate files.drmkms from Linux Makefile.
@
text
@d19 1
@

