mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
synced 2024-12-25 00:12:50 +00:00
32eb7c7307
GPLv2 firmware for carl9170, Atheros AR9170 802.11 draft-n USB driver. Cc: Christian Lamparter <chunkeey@googlemail.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
28 lines
816 B
CMake
28 lines
816 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(config)
|
|
|
|
#set(CMAKE_VERBOSE_MAKEFILE ON)
|
|
|
|
find_package(BISON REQUIRED)
|
|
find_package(FLEX REQUIRED)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
file(MAKE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../include/generated")
|
|
|
|
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../extra")
|
|
FIND_PACKAGE(GPERF REQUIRED)
|
|
|
|
BISON_TARGET(zconf zconf.y zconf.tab.c COMPILE_FLAGS "-l -b zconf -p zconf -t")
|
|
FLEX_TARGET(zconfscan zconf.l zconf.lex.c COMPILE_FLAGS "-Pzconf -L")
|
|
GPERF_TARGET(zconfhash zconf.gperf zconf.hash.c)
|
|
|
|
SET(zconf_deps ${FLEX_zconfscan_OUTPUTS} ${GPERF_zconfhash_OUTPUTS})
|
|
SET_SOURCE_FILES_PROPERTIES(${BISON_zconf_OUTPUTS}
|
|
PROPERTIES OBJECT_DEPENDS "${zconf_deps}")
|
|
|
|
set(conf_src conf.c ${BISON_zconf_OUTPUTS})
|
|
|
|
add_executable(conf ${conf_src})
|