GithubHelp home page GithubHelp logo

media_build's Introduction

# This is an experimental build system for media drivers.
# All files on this tree are covered by GPLv2, as stated at COPYING file.

# This tree is for compiling updatelee's modules for use with his updateDVB.

# Usage:

# First install depends:

sudo apt-get install git build-essential linux-headers-generic ncurses-dev bc patchutils wget libdigest-sha-perl libproc-processtable-perl fakeroot libelf-dev libssl-dev bison flex pigz

# For a normal compile to just apply UDL's kernel modules to your kernel use this procedure.
# It downloads a snapshot (@8M compressed tarball) of only the needed headers to compile UDL's modules.

git clone https://github.com/Dark-Sky/media_build.git
cd media_build_udl
./build
sudo make install
sudo cp sanitized-dvb-headers/* /usr/include/linux/dvb/
sudo reboot

# If you're developing a new driver or patch:

git clone https://github.com/Dark-Sky/media_build.git
cd media_build_udl
./build --main-git --depth 1
sudo make install
sudo cp sanitized-dvb-headers/* /usr/include/linux/dvb/
sudo reboot

# In this case, in order to modify something, you should edit the file at
# the media/ subdir.

For example, a typical procedure to develop a new patch would be:

	~/media_build $ cd media
	~/media $ gedit drivers/media/video/foo.c
	~/media $ make -C ../v4l
	~/media $ make -C .. rmmod
	~/media $ modprobe foo
	(some procedure to test the "foo" driver)
	~/media $ git diff >/tmp/my_changes.patch
	(email /tmp/my_changes.patch inlined to [email protected])

Some other notes that may be useful:

To clean the tree in order to start over:
       make -C linux distclean
To clean the tree to remove all files so you can compile for another kernel version:
       make cleanall
To create a new todaytar of the latest media drivers:
       make -C linux todaytar DIR=/full/path-to/medial_build/media

media_build's People

Contributors

crazycat69 avatar dark-sky avatar gennar1 avatar herrnst avatar hverkuil avatar jansing avatar jarodwilson avatar jasmin-j avatar majortom9 avatar mchehab avatar pinchartl avatar robertzenz avatar seanyoung avatar zzam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.