Ok well your welcome, but
I don't want to be rude whith who tried to help me or to offend anyone,
Then why are you doing that ?
Michele13 »I wanted to know how a Debian Developer would attempt this task.
Did you not notice: This is : Debian User Forums, we are all Debian Users, not developers..
Maybe try :
https://www.debian.org/contactAlso,
https://www.debian.org/doc/manuals/developers-reference/resources.html====================================================
I've tried to search on the net and there were tons of informations available that I didn't know where to start.
Start with reading some of the "tons" of information, a little bit at a time. This is also how Debian Developers learn what they need to learn to actually begin being a developer.
https://www.debian.org/ Has all the information you need, diddling around here, with all the witty witty , (BS), is not the best place to start.
Although:
LE_746F6D617A7A69 wrote:Michele13 wrote:Let's suppose that I have some kind of system that has an architecture not supporter by debian. I would like to build debian [i]from source code[\i] in order to produce a working system for that platform
Are You
really going to port Debian to some currently unsupported architecture - or Your question is just purely theoretical?
What is Your target architecture/platform?
Porting the entire system is a
BIG topic, 2 most important requirements are:
1. You need a compiler which supports the target architecture.
2. The OS kernel (Linux / HURD / kFreeBSD) must support the target architecture, otherwise You will have to port the kernel first.
Regards.
The above was actually the best answer here, it is short and concise, they tell you the first 2 most important requirements, Why don't you start with that, and come back later when you have actually done something,? besides just talk.(I mean write), and they also explain, "
Porting the entire system is a
BIG topic,", it is a HUGE topic, there are entire books on this, it is just plain silly to think it can be explained in a few forum posts, the "noise to signal ratio" will also be extremely high. In other words, stop wasting your time, and ours, start reading some material.
Below, in case you did not know what Hurd is
https://www.debian.org/ports/hurd/hurd-contact================================
https://www.debian.org/ports/hurd/================================
https://wiki.debian.org/Debian_GNU/Hurd++++++++++++++++++++++++++++++++++++++++++++++++
You did say thanks, in a way, BUT, have you even looked at any of the links I provided, and read them? it does not sound like you have,... I gave you some links to help get you started, but you still keep asking How to get started ?,...

... This one in particular, should be of interest:
https://wiki.debian.org/Teams/Dpkg/FAQ#Q._Can_we_add_support_for_new_dpkg_architectures.3FI all ready posted it, but I don't think the OP even followed it and read it,....so I am going to copy paste part, this would not be necessary , if the person really was trying to learn something. Any way:
Q. Can we add support for new dpkg architectures?
A: Sure. These are the current requirements for a new dpkg architecture:
It should have an official GNU triplet in the GNU config project.
It should have support merged upstream in at least GNU binutils, gcc, and the respective libc project used.
It should not require the machine manufacturer (or vendor) part of the GNU triplet to be used to distinguish the ABI, nor it should expose it as unknown in the GNU triplet names nor internally in the Debian tuple.
It should not have the same (full) ABI as any existing dpkg architecture.
The mapping between a GNU triplet and a dpkg architecture should be 1:1 (i.e. bijective).
The dpkg architecture name should have been vetted by the current architecture porting team and/or the dpkg maintainers.
The dpkg architecture name should try to use a pattern similar to an already existing and related architecture (although there's existing exceptions to this due to historical reasons, but those should not be used as precedent!).
The bits size gets appended to the base architecture cpu name (for example sparc and sparc64).
The endianness gets appended to the base architecture cpu name. The suffixes are eb for big-endian and el for little-endian. If the architecture is not capable of operating with either endianness, then there's no need to suffix it. If one of the endianness is the prevalent one and the other sees marginal use, then the prevalent one can obviate the endianness suffix.
The dpkg architecture name has the following additional characteristics:
The name is a tuple with the components in reverse order compared to the GNU triplet, <abi>-<libc>-<kernel>-<cpu>.
If the tuple only has one component the <kernel> is assumed to be linux.
If the tuple is kernel independent then <kernel> should be none.
If the tuple only has one or two components the <libc> is assumed to be the baseline for that port, so on a glibc-centric port uncommon variations should use the three or four-form triplet (e.g. uclibc or musl variants).
If the tuple only has three components the <abi> is assumed to be the baseline for that port, which will be assumed to be base.
If the <abi> is different than base, then it will normally be the merged ABI part of the GNU triplet as <cpu>-<kernel>-<libc><abi> in something like arm-linux-gnueabi with gnu and eabi respectively.
Actually, I quoted all of it.
Any way, it is not a total waste of time, based on the title, "How to Port Debian to a new architecture?".
there might be someone genuinely interested and trying to learn about this, and if they stumble on to it , they will read the topic, and have various sources to help them get started. ,... But I still can't take the OP seriously, if they are serious, they need to stop the BS, and start the actual reading/studying and trying some things,... that is the work part.