New development system - build external stuff

All development related issues welcome

Moderator: Moderator Team

Post Reply
sherpya
Posts: 25
Joined: Tue Dec 21, 2004 3:56 am
Location: Italy

New development system - build external stuff

Post by sherpya » Mon May 30, 2005 1:24 am

I was building a boovid replacement as kernel dll instead of kernel driver,
and my directory was outside the build system. I was using this makefile:

Code: Select all

HOST = mingw32-linux
PATH_TO_TOP = /root/winpe/reactos
TARGET_BASE = 0x80010000
TARGET_TYPE = kmdll
TARGET_NAME = bootvid
TARGET_CFLAGS = -Wall -DVERBOSE
TARGET_LFLAGS = -static
TARGET_GCCLIBS := gcc m
MAIN_OBJECTS = bootvid.o pixelsup_i386.o
TARGET_OBJECTS = $(MAIN_OBJECTS)
TARGET_CLEAN = *.o
include $(PATH_TO_TOP)/rules.mak
include $(TOOLS_PATH)/helper.mk
DEP_OBJECTS := $(TARGET_OBJECTS)
include $(PATH_TO_TOP)/tools/depend.mk
there is a simple way to do this with new build system? I've tried to reuse boovid stuff but it always build bootvid as in real subdir

I've tried using:

Code: Select all

<module name="bootvid" type="kernelmodedll">
        <include base="bootvid">.</include>
        <library>ntoskrnl</library>
        <library>hal</library>
        <file>bootvid.c</file>
        <file>pixelsup_i386.S</file>
        <file>bootvid.rc</file>
</module>
as boovid.xml
and

Code: Select all

TOP = ../reactos
ROS_OUTPUT = .
ROS_INTERMEDIATE = .
ROS_TEMPORARY = .

DEFAULT = bootvid
include $(TOP)/proxy.mak
as makefile
any suggestion?

GvG
Posts: 499
Joined: Mon Nov 22, 2004 10:50 pm
Location: The Netherlands

Post by GvG » Mon May 30, 2005 9:55 am

I don't think there's a simple way to build outside the tree, but I don't understand why you want to do that. You could e.g. create a new directory "extra" in your top-level "reactos" directory and put your project there. Then add a reference to your .xml file in the reactos.xml file in the top-level directory

Dr. Fred
Developer
Posts: 607
Joined: Wed Dec 22, 2004 10:09 pm
Location: Amsterdam

Post by Dr. Fred » Mon May 30, 2005 11:07 am

Did you try to inseret
<xi:include href="../yourdir/yourmakefile.xml" />
into ReactOs.xml?
Where do you want ReactOS to go today ?

sherpya
Posts: 25
Joined: Tue Dec 21, 2004 3:56 am
Location: Italy

Post by sherpya » Tue May 31, 2005 3:41 am

I've understood a bit the system now I have a working build, anyway with the old build system this stuff was less "invasive" I was not modifing any ros file.
another strange thing is that now kernelmodedll needs to have a DriverProcedure that also is not used (at least in my case), I'll make more tests.
In any case my stuff is located here: http://heanet.dl.sourceforge.net/source ... id-0.1.zip
(old build system), it's a drop in replacement for windows bootvid dll to make possibile using different boot images without hacking MS copyrighted files.

sherpya
Posts: 25
Joined: Tue Dec 21, 2004 3:56 am
Location: Italy

Post by sherpya » Tue May 31, 2005 10:00 am

I'm working on it and now it can load png images, I think the mod could be easly adapted to the reactos bootvid driver, if someone is intrested I could make a patch (currently some files from libpng and zlib are needed), but zlib are yet in reactos so files can be reused

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests