UML kernel define/config and arch/subarch
Hello,
as some of you already knows I'm trying to add the "um" subarch to build
UML kernels.
I'm having some problems in forcing the kernel build with ARCH=um so I
suppose I'm missing something:
is arch/subarch support fully in place?
or is it just not appropriate for an 'um' subarch (not what I've been
told on irc)?
AFAICS $(ARCH) is used both in
dpkg-architecture -a'$(ARCH)' -qDEB_BUILD_ARCH
and friends and in
make-kpkg --arch '$(ARCH)' ...
and this is definitely not helpful for UML as it needs to build with
make-kpkg --arch um
Any suggestion?
BTW here's what I'm using:
/--- debian/arch/i386/um/defines ---
| [base]
| flavours:
| 686
| kernel-arch: um
| suggests: uml-utilities, umlrun, rootstrap
|
| [686]
| class: 586/K5/5x86/6x86/6x86MX UM
| suggests: uml-utilities, umlrun, rootstrap
| longclass: 32-bit UML 586/K5/5x86/6x86/6x86MX host
\------
and this modification to current scripts in SVN (I don't know why
builddeb is not there so I commented it out...)
Index: rules.real
===================================================================
--- rules.real (revision 5563)
+++ rules.real (working copy)
@@ -111,8 +111,8 @@
cp -al $(srcfiles) '$(DIR)'
$(patch_cmd)
#make-kpkg does this when building kernel-source.
- mv '$(DIR)/scripts/package/Makefile' '$(DIR)/scripts/package/Makefile.dist'
- mv '$(DIR)/scripts/package/builddeb' '$(DIR)/scripts/package/builddeb.dist'
+ #mv '$(DIR)/scripts/package/Makefile' '$(DIR)/scripts/package/Makefile.dist'
+ #mv '$(DIR)/scripts/package/builddeb' '$(DIR)/scripts/package/builddeb.dist'
echo "# Dummy Makefile" > '$(DIR)/scripts/package/Makefile'
echo "all:" >> '$(DIR)/scripts/package/Makefile'
touch '$@'
Index: arch/i386/defines
===================================================================
--- arch/i386/defines (revision 5563)
+++ arch/i386/defines (working copy)
@@ -6,6 +6,7 @@
686-smp
k7
k7-smp
+subarches: um
kernel-arch: i386
kernel-header-dirs: i386
suggests: lilo (>= 19.1) | grub, fdutils
--
mattia
:wq!
Reply to: