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.6
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.4
	perseant-exfatfs-base:1.6
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.2
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.5
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.8
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.5.0.6
	cjep_staticlib_x-base:1.5
	netbsd-9-1-RELEASE:1.5
	phil-wifi-20200421:1.5
	phil-wifi-20200411:1.5
	is-mlppp:1.5.0.4
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.5
	netbsd-9-0-RC2:1.5
	netbsd-9-0-RC1:1.5
	phil-wifi-20191119:1.5
	netbsd-9:1.5.0.2
	netbsd-9-base:1.5
	phil-wifi-20190609:1.5
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.3.2.2
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	pgoyette-compat-0728:1.4
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.4.0.2
	phil-wifi-base:1.4
	pgoyette-compat-0625:1.4
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	pgoyette-compat:1.3.0.2
	pgoyette-compat-base:1.3
	matt-nb8-mediatek:1.2.0.12
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.10
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.8
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.6
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	bouyer-socketcan:1.2.0.4
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	pgoyette-localcount-20161104:1.2
	pgoyette-localcount:1.2.0.2
	localcount-20160914:1.2;
locks; strict;
comment	@# @;


1.6
date	2021.08.19.09.05.23;	author mrg;	state Exp;
branches;
next	1.5;
commitid	05VsSm78Bn5WQy5D;

1.5
date	2019.01.10.09.10.31;	author mrg;	state Exp;
branches;
next	1.4;
commitid	d0j6lkT52WlMtd7B;

1.4
date	2018.03.14.07.23.00;	author mrg;	state Exp;
branches
	1.4.2.1;
next	1.3;
commitid	vWLH6geiJ4mRAouA;

1.3
date	2017.08.29.07.12.13;	author mrg;	state Exp;
branches
	1.3.2.1;
next	1.2;
commitid	DOPCd2mfjFHFR45A;

1.2
date	2016.08.18.13.46.58;	author christos;	state Exp;
branches
	1.2.2.1;
next	1.1;
commitid	LYJLNbsX1PXj8Niz;

1.1
date	2016.08.17.03.10.23;	author mrg;	state Exp;
branches;
next	;
commitid	FODCiWPJdpt6EBiz;

1.4.2.1
date	2019.06.10.22.02.40;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.3.2.1
date	2018.03.15.09.12.00;	author pgoyette;	state Exp;
branches;
next	1.3.2.2;
commitid	lb7w3QtkrVH4axuA;

1.3.2.2
date	2019.01.18.08.49.03;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.2.2.1
date	2016.08.18.13.46.58;	author pgoyette;	state dead;
branches;
next	1.2.2.2;
commitid	0FvUzdNwg07UHcmz;

1.2.2.2
date	2016.09.14.03.04.15;	author pgoyette;	state Exp;
branches;
next	;
commitid	0FvUzdNwg07UHcmz;


desc
@@


1.6
log
@install amdgpu.ids.
@
text
@#      $NetBSD: Makefile,v 1.5 2019/01/10 09:10:31 mrg Exp $

.include <bsd.own.mk>

LIB=	drm_amdgpu
.PATH: ${X11SRCDIR.drm}
.PATH: ${X11SRCDIR.drm}/amdgpu

SRCS= \
	amdgpu_asic_id.c \
	amdgpu_bo.c \
	amdgpu_cs.c \
	amdgpu_device.c \
	amdgpu_gpu_info.c \
	amdgpu_vamgr.c \
	amdgpu_vm.c \
	handle_table.c

LIBDRMDATADIR=	${X11ROOTDIR}/share/libdrm
# XXX goes away in new libdrm.
IDS_NENT!=	egrep -ci '^[0-9a-f]{4},.*[0-9a-f]+,' ${X11SRCDIR.drm}/data/amdgpu.ids

CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/libdrm
CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 -I${X11SRCDIR.drm}
CPPFLAGS+=	-DAMDGPU_ASIC_ID_TABLE=\"${LIBDRMDATADIR}/amdgpu.ids\" \
		-DAMDGPU_ASIC_ID_TABLE_NUM_ENTRIES=$(IDS_NENT)

LIBDPLIBS=	drm	${.CURDIR}/../libdrm

PKGCONFIG=	libdrm_amdgpu
PKGDIST=	drm

COPTS.amdgpu_cs.c+= -Wno-stack-protector

FILES=		amdgpu.ids
FILESDIR=	${LIBDRMDATADIR}

.PATH:          ${X11SRCDIR.drm}/data

.include "../libdrm/Makefile.defines"

.include <bsd.x11.mk>
.include <bsd.lib.mk>
@


1.5
log
@build fixes for libdrm 2.4.96.

XXX: may still have build issues, and cleandir before
XXX: update builds is likely needed
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.4 2018/03/14 07:23:00 mrg Exp $
d35 2
a36 2
#FILES=		amdgpu.ids
#FILESDIR=	${LIBDRMDATADIR}
d38 1
a38 1
.PATH:          ${X11SRCDIR.libdrm}/data
@


1.4
log
@update for libdrm 2.4.91.
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.3 2017/08/29 07:12:13 mrg Exp $
d17 1
a17 2
	util_hash.c \
	util_hash_table.c
@


1.4.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.5 2019/01/10 09:10:31 mrg Exp $
d17 2
a18 1
	handle_table.c
@


1.3
log
@update for libdrm 2.4.83.  the amdgpu.ids file isn't installed yet
(some odd FILES issue?) but this isn't a used driver yet anyway.
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.2 2016/08/18 13:46:58 christos Exp $
d16 1
d21 1
d25 1
a25 2
CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 -I${X11SRCDIR.drm} \
		-DHAVE_SYS_SYSCTL_H
@


1.3.2.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.4 2018/03/14 07:23:00 mrg Exp $
a15 1
	amdgpu_vm.c \
a19 1
# XXX goes away in new libdrm.
d23 2
a24 1
CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 -I${X11SRCDIR.drm}
@


1.3.2.2
log
@Synch with HEAD
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.3.2.1 2018/03/15 09:12:00 pgoyette Exp $
d17 2
a18 1
	handle_table.c
@


1.2
log
@elide stack protector warning.
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.1 2016/08/17 03:10:23 mrg Exp $
d10 1
d19 3
d25 2
d35 5
@


1.2.2.1
log
@file Makefile was added on branch pgoyette-localcount on 2016-09-14 03:04:15 +0000
@
text
@d1 32
@


1.2.2.2
log
@Sync with HEAD
@
text
@a0 32
#      $NetBSD: Makefile,v 1.2 2016/08/18 13:46:58 christos Exp $

.include <bsd.own.mk>

LIB=	drm_amdgpu
.PATH: ${X11SRCDIR.drm}
.PATH: ${X11SRCDIR.drm}/amdgpu

SRCS= \
	amdgpu_bo.c \
	amdgpu_cs.c \
	amdgpu_device.c \
	amdgpu_gpu_info.c \
	amdgpu_vamgr.c \
	util_hash.c \
	util_hash_table.c

CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/libdrm
CPPFLAGS+=	-I${DESTDIR}${X11INCDIR}/X11 -I${X11SRCDIR.drm} \
		-DHAVE_SYS_SYSCTL_H

LIBDPLIBS=	drm	${.CURDIR}/../libdrm

PKGCONFIG=	libdrm_amdgpu
PKGDIST=	drm

COPTS.amdgpu_cs.c+= -Wno-stack-protector

.include "../libdrm/Makefile.defines"

.include <bsd.x11.mk>
.include <bsd.lib.mk>
@


1.1
log
@updates for libdrm 2.4.70.  build libdrm_amdgpu on x86.
@
text
@d1 1
a1 1
#      $NetBSD: Makefile,v 1.7 2014/07/13 16:35:49 joerg Exp $
d27 2
@

