realtek: merge duplicated DGS-1210 recipes
authorSander Vanheule <sander@svanheule.net>
Sat, 17 Sep 2022 20:06:37 +0000 (22:06 +0200)
committerSander Vanheule <sander@svanheule.net>
Sat, 17 Sep 2022 20:12:35 +0000 (22:12 +0200)
commit9338c09ecbfa40522eec061728302fd8ae49dce3
tree9984915d456a55b0c8d5c583e54de0f7e851c4bd
parente04e821471bb12d5602ab48bcdd1ce1add99daf9
realtek: merge duplicated DGS-1210 recipes

The D-Link DGS-1210 device series currently has supported devices with
both RTL838x and RTL839x SoCs. An image build recipe has been defined in
both subtarget makefiles, but these are mostly identical, save for the
SOC variable.

Move the SOC variable from the DGS-1210 build recipes to the applicable
devices, and put the remaining duplicate code in a shared Makefile.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/image/common.mk [new file with mode: 0644]
target/linux/realtek/image/rtl838x.mk
target/linux/realtek/image/rtl839x.mk