lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Thu, 31 Jul 2008 17:03:06 +0300
From:	Boaz Harrosh <bharrosh@...asas.com>
To:	Richard Hacker <lerichi@....net>, Sam Ravnborg <sam@...nborg.org>
CC:	linux-kernel <linux-kernel@...r.kernel.org>
Subject: how to use KBUILD_EXTRA_SYMBOLS

I have two out-of-tree modules that I compile with the M=
mechanics, one of the modules has imports from the other one.

I tried to follow modules.txt and put an KBUILD_EXTRA_SYMBOLS
when building. Somewhat like below:

	# derived.ko module Makefile
	# $(BASE_MODULE_DIR) must point to base.ko source directory
	KBUILD_BASE = +$(MAKE) -C $(KSRC) M=`pwd` KBUILD_OUTPUT=$(KBUILD_OUTPUT) ARCH=$(ARCH)

	derived:
		$(KBUILD_BASE) KBUILD_EXTRA_SYMBOLS=$(BASE_MODULE_DIR) modules

But doing this does work:
	# derived module Makefile
	# $(BASE_MODULE_DIR) must point to base.ko source directory

	KBUILD_BASE = +$(MAKE) -C $(KSRC) M=`pwd` KBUILD_OUTPUT=$(KBUILD_OUTPUT) ARCH=$(ARCH)

	derived:
		$(KBUILD_BASE) KBUILD_EXTMOD=$(BASE_MODULE_DIR) modules


The diff is s/KBUILD_EXTRA_SYMBOLS/KBUILD_EXTMOD.

It took me a long while and inspection the git-log of
Documentation/kbuild/modules.txt to figure that out. Perhaps an example
is do in documentation.

What am I doing wrong?

Thanks
Boaz


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ