BS DRM is a library to factor out most of the boilerplate found in programs written against DRM.
-std=gnu99
libgbm
libdrm
(in order of priority)
Define CC
CFLAGS
and LDFLAGS
for your device. Then run the following from the top level directory:
${CC} ${CFLAGS} -c src/dma_buf.c -o dma_buf.o || exit 1 ${CC} ${CFLAGS} -c src/drm_fb.c -o drm_fb.o || exit 1 ${CC} ${CFLAGS} -c src/drm_open.c -o drm_open.o || exit 1 ${CC} ${CFLAGS} -c src/drm_pipe.c -o drm_pipe.o || exit 1 ${CC} ${CFLAGS} -c src/dumb_mmap.c -o dumb_mmap.o || exit 1 ${CC} ${CFLAGS} -c src/pipe.c -o pipe.o || exit 1 ${CC} ${CFLAGS} -c example/stripe.c -o stripe.o || exit 1 ${CC} ${LDFLAGS} \ pipe.o \ dma_buf.o \ drm_pipe.o \ drm_fb.o \ drm_open.o \ dumb_mmap.o \ stripe.o -o bstest || exit 1
If you want to format gamma_test.c
, first go to the drm-tests source directory and then run:
clang-format -style=file -i gamma_test.c
The -style=file
argument will cause clang-format to search recursively upwards for the .clang-format
style file, which is in drm-tests.
BS does't stand for anything.