aboutsummaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/Makefile28
-rw-r--r--toolchain/cross_binutils.mk63
-rw-r--r--toolchain/host_binutils.mk55
-rw-r--r--toolchain/host_gcc.mk58
-rw-r--r--toolchain/utils.mk22
5 files changed, 0 insertions, 226 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
deleted file mode 100644
index 004ca79..0000000
--- a/toolchain/Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-# bubbl
-# Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-export ROOT_DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-export BUILD_DIR := $(ROOT_DIR)/build
-export OUT_DIR := $(ROOT_DIR)
-export PARALLEL_CORES := 16
-
-all:
- $(MAKE) -f host_binutils.mk
- $(MAKE) -f host_gcc.mk
- $(MAKE) -f cross_binutils.mk
- $(MAKE) -f cross_gcc.mk
diff --git a/toolchain/cross_binutils.mk b/toolchain/cross_binutils.mk
deleted file mode 100644
index dfdea3e..0000000
--- a/toolchain/cross_binutils.mk
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# bubbl
-# Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-include utils.mk
-
-VERSION := 2.42
-URL := https://ftp.gnu.org/gnu/binutils/binutils-$(VERSION).tar.gz
-
-DIR := $(BUILD_DIR)/toolchain/binutils-$(VERSION)
-FILE := $(DIR)/binutils-$(VERSION).tar.gz
-SRC := $(DIR)/binutils-$(VERSION)
-OUT := $(OUT_DIR)/cross
-BUILD := $(DIR)/build_cross
-
-TOOLCHAIN_TARGET := i686-elf
-
-all: install
-
-.ONESHELL:
-
-$(call add-to-path,$(shell pwd)/host/bin)
-
-$(FILE):
- mkdir -p $(DIR)
- wget $(URL) -O $(FILE)
-
-unpack: $(FILE)
- tar xf $(FILE) -C $(DIR)
-
-configure: unpack
- mkdir -p $(BUILD)
- cd $(BUILD)
- $(SRC)/configure \
- --prefix=$(OUT) \
- --target=$(TOOLCHAIN_TARGET) \
- --disable-nls \
- --with-sysroot
-
-build: configure
- cd $(BUILD)
- $(MAKE) -j$(PARALLEL_CORES)
-
-install: build
- cd $(BUILD)
- $(MAKE) install
-
-clean:
- rm -rf $(DIR) $(FILE) $(OUT)
diff --git a/toolchain/host_binutils.mk b/toolchain/host_binutils.mk
deleted file mode 100644
index 3b7ab61..0000000
--- a/toolchain/host_binutils.mk
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# bubbl
-# Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-VERSION := 2.42
-URL := https://ftp.gnu.org/gnu/binutils/binutils-$(VERSION).tar.gz
-
-DIR := $(BUILD_DIR)/toolchain/binutils-$(VERSION)
-FILE := $(DIR)/binutils-$(VERSION).tar.gz
-SRC := $(DIR)/binutils-$(VERSION)
-OUT := $(OUT_DIR)/host
-BUILD := $(DIR)/build_host
-
-all: install
-
-.ONESHELL:
-
-$(FILE):
- mkdir -p $(DIR)
- wget $(URL) -O $(FILE)
-
-unpack: $(FILE)
- tar xf $(FILE) -C $(DIR)
-
-configure: unpack
- mkdir -p $(BUILD)
- cd $(BUILD)
- $(SRC)/configure \
- --prefix=$(OUT) \
- --disable-nls
-
-build: configure
- cd $(BUILD)
- $(MAKE) -j$(PARALLEL_CORES)
-
-install: build
- cd $(BUILD)
- $(MAKE) install
-
-clean:
- rm -rf $(DIR) $(FILE) $(OUT)
diff --git a/toolchain/host_gcc.mk b/toolchain/host_gcc.mk
deleted file mode 100644
index a0aa068..0000000
--- a/toolchain/host_gcc.mk
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# bubbl
-# Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-VERSION := 14.2.0
-URL := https://ftp.gnu.org/gnu/gcc/gcc-$(VERSION)/gcc-$(VERSION).tar.gz
-
-DIR := $(BUILD_DIR)/toolchain/gcc-$(VERSION)
-FILE := $(DIR)/gcc-$(VERSION).tar.gz
-SRC := $(DIR)/gcc-$(VERSION)
-OUT := $(OUT_DIR)/host
-BUILD := $(DIR)/build_host
-
-all: install
-
-.ONESHELL:
-
-$(FILE):
- mkdir -p $(DIR)
- wget $(URL) -O $(FILE)
-
-unpack: $(FILE)
- tar xf $(FILE) -C $(DIR)
-
-configure: unpack
- cd $(SRC)
- ./contrib/download_prerequisites
- mkdir -p $(BUILD)
- cd $(BUILD)
- $(SRC)/configure \
- --prefix=$(OUT) \
- --disable-nls \
- --enable-languages=c,c++
-
-build: configure
- cd $(BUILD)
- $(MAKE) -j$(PARALLEL_CORES)
-
-install: build
- cd $(BUILD)
- $(MAKE) install
-
-clean:
- rm -rf $(DIR) $(FILE) $(OUT)
diff --git a/toolchain/utils.mk b/toolchain/utils.mk
deleted file mode 100644
index c196d80..0000000
--- a/toolchain/utils.mk
+++ /dev/null
@@ -1,22 +0,0 @@
-#
-# bubbl
-# Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com>
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-add_to_path = $(eval PATH := $1:$(PATH))
-current-dir = $(dir $(lastword $(MAKEFILE_LIST)))
-all-makefiles-under = $(wildcard $(1)/*/module.mk)
-all-subdir-makefiles = $(wildcard */module.mk)