56 Commits

Author SHA1 Message Date
CrazyCat
ab5c58bfdc Update download url. 2025-03-19 19:41:32 +02:00
CrazyCat
88764363a3 Update build script 2023-12-10 21:57:39 +02:00
CrazyCat
cb37216277 Update build script 2023-10-28 01:09:52 +03:00
CrazyCat
e8dea8e4dc Merge branch 'master' of git://linuxtv.org/media_build 2020-05-15 02:43:37 +03:00
Vincent McIntyre
21551d274c media-build: build against a specific kernel
I find it helpful to be able to build the linux-media modules
for a kernel other than the one I am currently running.

This is a resend of the patch that in two previous attempts
made it into patchwork but the text was line-wrapped.
Those patches should be dropped.
  https://patchwork.linuxtv.org/patch/59979/
  https://patchwork.linuxtv.org/patch/60186/

There are no differences in the patch, just the submission email.
Apologies for all the noise.

Signed-off-by: Vincent McIntyre <media@arewethere.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2020-03-12 09:16:56 +01:00
CrazyCat
22135571ac Update source snapshot URLs. 2018-05-22 17:43:15 +03:00
CrazyCat
141c48d101 build: Fix merge conflict. 2017-12-06 23:45:49 +02:00
CrazyCat
f54ce3c7e1 Merge branch 'master' of https://bitbucket.org/CrazyCat/media_build
Conflicts:
	build
	install.sh
	linux/Makefile
	v4l/scripts/make_kconfig.pl
2017-11-29 03:06:09 +02:00
CrazyCat
c340e29a40 Merge branch 'master' of git://linuxtv.org/media_build 2017-09-22 23:34:44 +03:00
CrazyCat
9899378695 Merge branch 'master' of git://linuxtv.org/media_build
Conflicts:
	v4l/versions.txt
2017-09-14 04:49:13 +03:00
Hans Verkuil
1abc6be7b3 Recognize Raspbian distro.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2017-07-26 13:26:31 +02:00
CrazyCat
6cd9275046 Merge branch 'master' of git://linuxtv.org/media_build
Conflicts:
	backports/pr_fmt.patch
	backports/v3.1_no_export_h.patch
	backports/v4.10_sched_signal.patch
	build
	v4l/compat.h
	v4l/scripts/make_config_compat.pl
	v4l/versions.txt
2017-07-12 03:52:03 +03:00
CrazyCat
286e912e80 Merge branch 'master' of git://linuxtv.org/media_build
Conflicts:
	build
2017-06-15 03:00:23 +03:00
Mauro Carvalho Chehab
dbdc2495ec build: use run() also for the main git clone
Almost all git commands now use run() instead of system().
Do the same change for the main git clone command.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-13 16:58:20 -03:00
Vincent McIntyre
19c80d3263 build: make check_git() give more information in verbose mode
While debugging another issue I found this change helpful.
Original send Date: Thu, 1 Jun 2017 20:44:27 +1000

Make check_git() give more information in verbose mode.

Signed-off-by: Vincent McIntyre <vincent.mcintyre@gmail.com>
2017-06-13 14:31:32 -03:00
Vincent McIntyre
3a82165ce7 build: Introduce a function to help tracing of system() calls
While debugging a recent issue I wanted more complete information
about the sequencence of events in a series of calls like
  system("foo") or die("BAR")
Adding this helper did that and cleaned things up a little.

Signed-off-by: Vincent McIntyre <vincent.mcintyre@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-13 14:29:21 -03:00
Vincent McIntyre
4dc4f2278b build: avoid going splat if --depth is not given
Commit 6b4a9c5 indroduced the --depth parameter to limit the commit history
pulled by when cloning, giving a nice speedup. But in the process it broke
running without the --depth parameter. The first invocation of
'./build --main-git' works fine, but the second falls over like so:

  fatal: No such remote or remote group: media_tree/master
  Can't update from the upstream tree at ./build line 430.

The fix is to check whether that remote has been defined before trying
to update from it.

Signed-off-by: Vincent McIntyre <vincent.mcintyre@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-06-13 14:28:29 -03:00
CrazyCat
af5f7c7039 Fix repo update. 2017-05-06 23:02:36 +03:00
Mauro Carvalho Chehab
cbff99b200 build: fix a typo
There's an extra word added at the helper line for --depth
parmeter, added by mistake.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-05-06 22:35:07 +03:00
Mauro Carvalho Chehab
2da8a11797 build: add an option to pass --depth parameter to git clone
Cloning a tree with --depth will help to reduce bandwidth
usage for downloads and tree size.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-05-06 22:35:07 +03:00
CrazyCat
df92f6fd8b Fix repo fetch. 2017-05-05 23:59:01 +03:00
CrazyCat
0c9d8c1e23 Merge branch 'master' of git://linuxtv.org/media_build 2017-04-13 20:52:03 +03:00
Mauro Carvalho Chehab
d49f7b2d99 build: fix a typo
There's an extra word added at the helper line for --depth
parmeter, added by mistake.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-04-08 10:16:30 -03:00
Mauro Carvalho Chehab
6b4a9c59b2 build: add an option to pass --depth parameter to git clone
Cloning a tree with --depth will help to reduce bandwidth
usage for downloads and tree size.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-04-08 10:11:45 -03:00
CrazyCat
d672306c74 Fix scripts. 2017-02-21 02:26:00 +02:00
CrazyCat
fb3a2000d1 Merge branch 'master' of git://linuxtv.org/media_build into latest
Conflicts:
	v4l/compat.h
	v4l/scripts/make_config_compat.pl
	v4l/versions.txt
2017-02-06 23:00:12 +02:00
CrazyCat
09d07ee081 Fixed url for media_build autoupdate. 2016-09-15 22:06:10 +03:00
CrazyCat
2eb1c213c0 Fix url for this media_build update. 2016-08-27 22:32:42 +03:00
CrazyCat
4599829cc0 Change urls in build scripts. 2016-08-08 00:08:49 +03:00
CrazyCat
2a03af5180 Set default DVB_MAX_ADAPTERS 32. 2016-06-14 23:09:31 +03:00
CrazyCat
8f05d28d77 Support for GitHub and Bitbucket.
New urls.
2015-11-24 21:53:49 +02:00
Mauro Carvalho Chehab
7b8f37bd22 Get rid of the old broken emails
Remove my legacy emails from the files, and point to the ML
for bug reports, as bug fixes will be better tracked there.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-02-07 08:12:13 -02:00
Mauro Carvalho Chehab
4e79531862 build: improve it to also allow working with a local branch
In the case of local branch, it will try to reduce the amount
of data copied, by just creating a new workdir, if git-new-workdir
is on the path. Otherwise, it will just create a new clone of
a local tree.

Every time build is called using a new-workdir, it will reset
the branch to point to the named branch. So, any changes at
the git workdir under media will be lost.

Of course, git reflog can be used to recover the old patches,
if needed.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-01-04 16:12:51 -02:00
Mauro Carvalho Chehab
5c6b10e0ae build: don't add branch to git remote add
git remote add doesn't have a branch argument. This doesn't fail
with some git versions, but others are more pedantic.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-12-13 07:08:38 -02:00
Mauro Carvalho Chehab
e4429900d6 Wget is also required for the building system
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-07-25 01:48:09 -03:00
Mauro Carvalho Chehab
1eef0533ac build: Fix the logic that matches RHEL
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-03-21 11:27:11 -03:00
Mauro Carvalho Chehab
6783c87743 build: the main branch is now "master"
As reported by leo@lumanate.com:

	leo@ubaduba:~/ltv3/media_build$ ./build --main-git --verbose
	...
	creating a local branch media_tree
	$ git --git-dir media/.git branch
	$ (cd media; git checkout -b media_tree/staging/for_v3.9
	remotes/r_media_tree/staging/for_v3.9)
	fatal: git checkout: updating paths is incompatible with switching
	branches.
	Did you intend to checkout 'remotes/r_media_tree/staging/for_v3.9' which
	can not be resolved as commit?
	Can't create local branch media_tree at ./build line 405.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-03-21 11:14:45 -03:00
Mauro Carvalho Chehab
6f190f5214 build: update the branch of the main repository
Reported-by: Alistair Buxton <a.j.buxton@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-01-01 12:06:56 -02:00
Hans Verkuil
71ec196fbe build: update main_branch to 3.6.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
2012-07-11 09:54:13 +02:00
Georg Jansing
37a9ab0437 [media] Add installation hints for openSUSE
I was trying to install Linux TV Kernel Modules via your media_build
git repo/scripts. Since I am on openSUSE and there are no installation
hints yet, and I needed to look up the correct packages anyways, here
is a small patch that adds the corresponding infomation to your script.

I hope, the formulation for adding the perl buildservice repository
(something like Ubuntu's PPAs) is clear enough. Please also be warned,
that I never did anything in perl yet, so I don't know if I chose the
best/perl way to add the repo message.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-07-05 13:13:27 -03:00
Mauro Carvalho Chehab
d5128be84d build: update it to the latest branch
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-04-11 18:38:13 -03:00
Mauro Carvalho Chehab
dbeb190327 build: prepare git to submit patches upstream
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-04-11 15:38:22 -03:00
David
689258c1a0 [media] media-build patch: distro-specific hint
On Debian I did:

  $ git clone git://linuxtv.org/media_build.git
  $ ./media_build/build
  Checking if the needed tools are present
  ...
  I don't know distro . So, I can't provide you a hint with the package names.

Debian uses /etc/issue to store the distro name, patch below:

$ diff -Naur media_build/build.orig media_build/build

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-04-09 10:36:38 -03:00
Laurent Pinchart
77edcb92e3 Add Gentoo to build package hints
Update the build script to print package names for Gentoo users.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-03-08 11:29:59 -03:00
Mauro Carvalho Chehab
25c307ca24 build: fix permissions
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-01-20 11:47:55 -02:00
Mauro Carvalho Chehab
39c7ee3cbd Fix Fedora/RHEL hint for SHA package broken by commit b67bc78ed
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-01-20 08:15:19 -02:00
Ben Limmer
e88230207b Add Debian to build package hints
Update to build script to give Debian users the Ubunutu package
hints. The aptitude package names are the same.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-01-20 08:15:19 -02:00
Mauro Carvalho Chehab
6ac08a51e4 Fix build for Debian GNU/Linux testing (wheezy)
Debian removed Digest::SHA1, in favor of Digest::SHA.

According with:
	http://stackoverflow.com/questions/3420720/what-are-the-advantages-of-digestsha-over-digestsha1

Digest::SHA is part of the perl-core and has a better implementation.
I double-checked it on Fedora distros and RHEL6: at least since Fedora 12
and on RHEL6, both packages are there. As Ubuntu generally follows Debian,
the package should also be there.

So, let's just use the Digest::SHA module.

Please, report if your distro comes with a kernel >= 2.6.32 but the ::SHA1
module is not supported there.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-11-24 20:34:32 -02:00
Mauro Carvalho Chehab
f80dfdcb1f Add hints for Arch Linux
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-10-11 17:50:57 -03:00
Mauro Carvalho Chehab
7fc5a18b7f build: improve distribution detection
As suggested by hotwings, use lsb_release by default, as a way
to detect the distribution type. This tool seems to be available on
a broad range of distros, but, as it might not be installed, the
logic still needs to fallback to use the old methods.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2011-08-13 09:32:29 -03:00