From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 15 Sep 2016 08:47:53 +0200 Subject: [Buildroot] Stripping kernel modules for ARC In-Reply-To: References: <1473852437.3766.15.camel@synopsys.com> Message-ID: <20160915084753.4717445f@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Wed, 14 Sep 2016 14:29:35 -0700, Daniel Mentz wrote: > I believe there might be a third option where we pass INSTALL_MOD_STRIP=1 > to the kernel Makefile when running "make modules_install". It would then > require a change in the Linux kernel Makefile to run a different > strip/objcopy command for ARC. This would contain the details of stripping > .ko files to the Linux kernel build system. Otherwise, we'll have this > cross-dependency between the kernel and buildroot. As soon as the kernel > switches to .eh_frame, buildroot would have to change again. Exactly my thinking. I discovered INSTALL_MOD_STRIP only recently, and I believe we should use it for the kernel instead of having our own logic. This would remove the need for special logic in Buildroot to strip kernel modules, and would leave it to the kernel build system to know how modules should be stripped in an architecture-specific way. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com