dde_bsd: create recipe for audio_drv

This commit is contained in:
Josef Söntgen 2017-11-12 16:19:41 +01:00 committed by Christian Helmuth
parent 7d54d1da0c
commit 3988d6cde2
4 changed files with 50 additions and 1 deletions

View File

@ -9,7 +9,8 @@ ifeq ($(called_from_lib_mk),yes)
BSD_CONTRIB_DIR := $(call select_from_ports,dde_bsd)/src/lib/audio
BSD_EMUL_H := $(REP_DIR)/src/lib/audio/include/bsd_emul.h
GEN_INCLUDES := $(shell grep -rIh "^\#include .*" $(BSD_CONTRIB_DIR) |\
SCAN_DIRS := $(addprefix $(BSD_CONTRIB_DIR)/, dev sys)
GEN_INCLUDES := $(shell grep -rIh "^\#include .*" $(SCAN_DIRS) |\
sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" | sort | uniq)
GEN_INC := $(shell pwd)/include

View File

@ -0,0 +1,40 @@
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/dde_bsd)
LIB_MK := $(addprefix lib/mk/, dde_bsd_audio.inc dde_bsd_audio_include.mk) \
$(foreach SPEC,x86_32 x86_64,lib/mk/spec/$(SPEC)/dde_bsd_audio.mk) \
lib/import/import-dde_bsd_audio_include.mk
MIRROR_FROM_REP_DIR := $(LIB_MK) src/lib src/drivers patches include
MIRROR_FROM_PORT_DIR := $(addprefix src/lib/audio/, \
dev/pci/azalia_codec.c \
dev/pci/pcidevs.h \
dev/pci/eap.c \
dev/pci/pcidevs_data.h \
dev/pci/azalia.h \
dev/pci/eapreg.h \
dev/pci/azalia.c \
dev/mulaw.h \
dev/audio_if.h \
dev/mulaw.c \
dev/audio.c \
dev/ic/ac97.h \
dev/ic/ac97.c \
sys/device.h \
sys/audioio.h \
sys/queue.h)
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR) LICENSE
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $@
LICENSE:
( echo 'OpenBSD code is most likely licensed under a ISC like license but for'; \
echo 'historical reasons different variations of the Berkeley Copyright are'; \
echo 'also in use. Please check the copyright header in the contrib source'; \
echo 'files in src/lib/audio/dev and src/lib/audio/sys.') > $@

View File

@ -0,0 +1 @@
2017-11-12 62353520696daa708056c338660d3b16e816d408

View File

@ -0,0 +1,7 @@
base
os
audio_in_session
audio_out_session
platform_session
report_session
timer_session