mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 16:37:43 +00:00
- add a sample (pseudo-)board for a mips malta box
This commit is contained in:
parent
0848d01d38
commit
4a175d2319
22
target/device/mips/Makefile.in
Normal file
22
target/device/mips/Makefile.in
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
BR2_BOARD_PATH:=target/device/mips
|
||||||
|
|
||||||
|
ifeq ($(strip $(BR2_PACKAGE_LINUX_KCONFIG)),)
|
||||||
|
ifndef LINUX26_KCONFIG
|
||||||
|
LINUX26_KCONFIG=$(BR2_BOARD_PATH)/linux26.config
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
LINUX26_KCONFIG=$(strip $(BR2_PACKAGE_LINUX_KCONFIG))
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(strip $(BR2_PACKAGE_LINUX_FORMAT)),)
|
||||||
|
ifndef LINUX26_FORMAT
|
||||||
|
LINUX26_FORMAT=vmlinux
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
LINUX26_FORMAT=$(strip $(BR2_PACKAGE_LINUX_FORMAT))
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef LINUX26_BINLOC
|
||||||
|
# mips32 has the vmlinux in the toplevel kernel build-tree.
|
||||||
|
LINUX26_BINLOC=$(LINUX26_FORMAT)
|
||||||
|
endif
|
1567
target/device/mips/linux26.config
Normal file
1567
target/device/mips/linux26.config
Normal file
File diff suppressed because it is too large
Load Diff
@ -29,7 +29,11 @@ LINUX26_SITE=http://ftp.kernel.org/pub/linux/kernel/v2.6
|
|||||||
ifndef LINUX26_FORMAT
|
ifndef LINUX26_FORMAT
|
||||||
LINUX26_FORMAT=zImage
|
LINUX26_FORMAT=zImage
|
||||||
endif
|
endif
|
||||||
|
# Has to be set by the target/device
|
||||||
|
ifndef LINUX26_BINLOC
|
||||||
|
# default:
|
||||||
LINUX26_BINLOC=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT)
|
LINUX26_BINLOC=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT)
|
||||||
|
endif
|
||||||
|
|
||||||
# Linux kernel configuration file
|
# Linux kernel configuration file
|
||||||
# Has to be set by the target/device
|
# Has to be set by the target/device
|
||||||
@ -107,7 +111,7 @@ $(LINUX26_KERNEL): $(LINUX26_DIR)/.depend_done
|
|||||||
|
|
||||||
$(TARGET_DIR)/boot/$(LINUX26_FORMAT): $(LINUX26_KERNEL)
|
$(TARGET_DIR)/boot/$(LINUX26_FORMAT): $(LINUX26_KERNEL)
|
||||||
[ -d $(TARGET_DIR)/boot/ ] || mkdir $(TARGET_DIR)/boot
|
[ -d $(TARGET_DIR)/boot/ ] || mkdir $(TARGET_DIR)/boot
|
||||||
cp -a $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_DIR)/System.map $(TARGET_DIR)/boot/
|
cp -dpf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_DIR)/System.map $(TARGET_DIR)/boot/
|
||||||
touch -c $@
|
touch -c $@
|
||||||
|
|
||||||
$(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_KERNEL)
|
$(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_KERNEL)
|
||||||
@ -130,7 +134,7 @@ linux26-source: $(DL_DIR)/$(LINUX26_SOURCE)
|
|||||||
|
|
||||||
# This has been renamed so we do _NOT_ by default run this on 'make clean'
|
# This has been renamed so we do _NOT_ by default run this on 'make clean'
|
||||||
linux26clean:
|
linux26clean:
|
||||||
rm -f $(LINUX26_KERNEL)
|
rm -f $(LINUX26_KERNEL) $(LINUX26_DIR)/.configured
|
||||||
-$(MAKE) PATH=$(TARGET_PATH) -C $(LINUX26_DIR) clean
|
-$(MAKE) PATH=$(TARGET_PATH) -C $(LINUX26_DIR) clean
|
||||||
|
|
||||||
linux26-dirclean:
|
linux26-dirclean:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user